Searching an assembly
2
0
Entering edit mode
9.6 years ago
zgayk ▴ 90

Hello,

It seems like it would be a simple task, but I was wondering if there is any easy way to search for a particular contig that I know the name of in an assembly. The assembly file is too large to use a text editor to do a search and find. I also tried using the linux command nano to find contigs, and this works but it takes a very long time.

The reason I need the actual dna sequence for a contig is because I want to align this with the sequence from a blast sequence hit.

Thank you,
Zach

Assembly • 1.6k views
ADD COMMENT
1
Entering edit mode
9.6 years ago
samtools faidx assembly.fa
samtools faidx assembly.fa some_name
ADD COMMENT
1
Entering edit mode
9.6 years ago

Alternately, with BBMap:

filterbyname.sh in=assembly.fa out=matched.fa names=some_name include=t
ADD COMMENT

Login before adding your answer.

Traffic: 1909 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