This is a test version of Biostars. For the public version, visit https://www.biostars.org.
grep gene location from gff without removing duplication

Hi Friends,

i am using grep command for gene location. But grep command automatically remove gene duplication and output file without gene duplication location. actually i need same output file with same pattern of my file. i don't want remove duplication. anybody can guide me about this???

r rna-seq sequencing

Please provide an example of data, the output that you need and the code that you've used. Otherwise it is really difficult for us to help you!

António

I am using this command

grep -f query.file data.file>output.file

but in my output file duplicate gene show only once. but i want output with same sequence pattern of my query.file.

Show us the first few lines of each file. Use the buttons to customize the answers, inclusive data, like:

  • Blockquote:

Like this

  • Code sample:

    Like this
    

António

In my query file 1200 gene but I am getting output 882 genes location, but i don't want remove duplication genes location. I need output with same pattern as my query file.

I am using this command

grep -f query.file data.gff> output.file

please guide me

Give me an example of your query. Is it like:

Gene_1
Gene_2
Gene_3
...

I just tested your command-line and for me it seems to work. From 50 genes queried I got 1384 lines, with all matches, the genes and mRNA, exons that are the child from the parent gene id. So, I guess it depends on your input, query and output. Without gives us a good description of that, it is impossible to help further.

António

how i can add data here???? have no option for attachment

You need not add the whole file

use head <your_file.gff> and then paste the contents here

i have 1200 genes in my querry list but i got result 889 , duplication remove. but i don't want remove duplication. i want result as my querry file. Thanks

Do you have the same query tag, like this gene_1 and gene_1, in your query file. If so, one is enough, because grep will search for one pattern in the whole file.

António

0 answers

No answers yet.

Log in to answer this question.