![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Extract sequence from multi fasta file with PERL | andreitudor | Bioinformatics | 27 | 07-07-2019 08:45 AM |
Extract a gene list from a gtf file produced by Cuffmerge | tigerxu | RNA Sequencing | 0 | 09-16-2014 11:30 AM |
Parsing multi fasta sequence file using Perl | newbie2this | Bioinformatics | 9 | 09-11-2013 05:48 AM |
How do I extract partial sequence data (Fasta) from multiple hits in NCBI nucleotide? | andtill | Bioinformatics | 1 | 11-09-2012 01:49 PM |
Extract only sequence ids from fasta file with makeblastdb | angeloulivieri | Bioinformatics | 13 | 07-30-2012 03:41 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Junior Member
Location: Italy Join Date: Sep 2014
Posts: 5
|
![]()
Hi,
I have a list of ids in .txt format and a multi fasta file with sequences. I need to extract sequences with the IDs in the list. Can you help me, please? |
![]() |
![]() |
![]() |
#2 |
Member
Location: Spain Join Date: Mar 2010
Posts: 36
|
![]()
I think you can do that using seqret which is part of EMBOSS. According to the documentation the paramater -iquery1 can be used to specify a list of IDs, although probably not a file with IDs...
|
![]() |
![]() |
![]() |
#3 |
Peter (Biopython etc)
Location: Dundee, Scotland, UK Join Date: Jul 2009
Posts: 1,543
|
![]()
Do you program? You can do that with a few lines using a library like Biopython.
Alternatively, if you have a local Galaxy you could ask your admin to install one of these tools: http://toolshed.g2.bx.psu.edu/view/p...q_filter_by_id or http://toolshed.g2.bx.psu.edu/view/p...q_select_by_id |
![]() |
![]() |
![]() |
#4 |
Senior Member
Location: sub-surface moon base Join Date: Apr 2013
Posts: 372
|
![]()
If there are no linebreaks in the sequences, then
Code:
grep -A1 -w -f id.txt seqFile.fasta > output.fasta
__________________
savetherhino.org |
![]() |
![]() |
![]() |
#5 |
Senior Member
Location: East Coast USA Join Date: Feb 2008
Posts: 7,091
|
![]()
faSomeRecords from Kent utilities is the simplest solution (http://hgdownload.soe.ucsc.edu/admin/exe/linux.x86_64/)
More here: http://seqanswers.com/forums/showpos...0&postcount=13 |
![]() |
![]() |
![]() |
Thread Tools | |
|
|