getting sequence for a list of miRNAs
2
1
Entering edit mode
7.6 years ago
zizigolu ★ 4.3k

hi,

I have a list of miRNAs IDs from different organisms how I can take sequence of mature miRNAs for all my IDs?

for example

lgi-mir-34

mdo-mir-193

mdo-mir-21

mdo-mir-302d

mml-mir-18

miRNAs • 1.8k views
ADD COMMENT
3
Entering edit mode
7.6 years ago
GenoMax 141k

From miRBase using this file.

ADD COMMENT
0
Entering edit mode

thank you, but this is whole of IDs, for example if I want only 100 IDs from which what should I do?

ADD REPLY
1
Entering edit mode

grep -A 1 your_ID them out of the miRBase file using a loop OR use filterbyname.sh from BBMap OR use samtools faidx as described here: A: How To Extract A Sequence From A Big (6Gb) Multifasta File ?.

ADD REPLY
1
Entering edit mode

I think grep -A 1 -F -f filewithids.txt mirbase.fa would also do the trick and avoid looping.

ADD REPLY
0
Entering edit mode

thank you both friends

ADD REPLY
2
Entering edit mode
7.6 years ago
zizigolu ★ 4.3k

another way was mirdeep2

fastaselect.pl reads.fa reads_select.ids > reads_select.fa

This script only prints out the fasta entries that match an id in the id file.

ADD COMMENT

Login before adding your answer.

Traffic: 1489 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6