How to extract a range of nucleotides from a fasta file
1
0
Entering edit mode
4.4 years ago

I have a fasta sequence and I want to extract nucleotides 5000-8000. What commands can I use to do this?

fasta • 2.0k views
ADD COMMENT
1
Entering edit mode
4.4 years ago
Ram 44k

Please search the site before you start a new topic. The question How to extract the last 1000 nt from a group of sequences in a FASTA file? has an answer from shenwei356 that addresses your situation:

seqkit subseq supports this, if you want a fast solution.

seqkit subseq -r -1000:-1 seqs.fa > result.fa
  

If you want to learn programming, write some Python scripts using Biopython.

ADD COMMENT

Login before adding your answer.

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