This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Alignment of mirna on specific organism data from mirbase

I have micro-RNA sequences that I need to align specifically to Drosophilar melanogaster mature microRNA from mirbase using bowtie. Have realized the fasta sequence of mature miRNA in mirbase contain all the organisms that whose microRNAs have been sequenced and submitted. I was wondering how I can extract/or specifically use D. melanogaster as reference as opposed to using all the mature miRNAs.

mirbase mirna

Do not type in a sentence to use as tags. Use relevant subject matter keywords. I'll try and fix it for you this time but please apply yourself a little more in the future.

2 answers

A simple solution is to download the file https://mirbase.org/download/mature.fa , then open it in a text editor (for example, Notepad++) and manually copy all sequences that have "Drosophila melanogaster" in their titles to another file.

A simple solution (...) then open it in a text editor (for example, Notepad++) and manually copy all sequences that have "Drosophila melanogaster" in their titles to another file.

no, this is not a simple solution.

There are different definitions of simplicity.

Sure, simple as in easy and simple as in foolish (like in simpleton). Your solution is along the latter lines.

assuming https://mirbase.org/download/mature.fa there is only one line per sequence and there is 'Drosophila melanogaster' in each header:

wget -q -O - "https://mirbase.org/download/mature.fa" |\
grep -F 'Drosophila melanogaster' -A1 --no-group-separator > melanogaster.fa

Thank you, sorted this out.

Please accept the answer so the question is marked solved on the website. To do that, click on the green check mark on the left side of the answer.

Log in to answer this question.