Thank you for the reply. I have used sed to remove most of the entries that I do not want. I used the code from cellranger to create the new entry that I want to add: To do this I used the part that is shown on cellranger mkref and just changed the GFP to my gene name and the position to the one for my gene.
echo -e 'cdk\tunknown\texon\t22,032,674\t22,032,986\t.\t+\t.\tgene_id "cdk"; transcript_id "cdk"; gene_name "cdk"; gene_biotype "protein_coding";' > cdk.gtf
Then I wanted to add it to my gtf file like shown below which adds it to the end of the gtf file:
cat GFP.gtf >> Grch38.filtered.GFP.gtf
I guess I will try to see what is the line number of the last entry I remove and then i will add the new gtf entry there.
This is the page (https://support.10xgenomics.com/single-cell-gene-expression/software/pipelines/latest/using/tutorial_mr#marker) where I got the code from. I am following the instructions to add a marker gene but I don't want to add an extra gene like GFP. I just want to change one of the entries in the human genome.