How to replace a stretch of a sequence with N's in a fasta file
1
0
Entering edit mode
6.1 years ago
Fluorine ▴ 100

Hi! I´m trying to change a stretch of 300,000 nucleotides on chromosome 21, with NNN´s in a fasta file. This turned out to be not such a trivial task. I searched BioPython packages for a solution but can't find anything appropriate. It needs to a specific region between 8,202,082–8,552,360 nucleotides on chr 21. Any ideas?

fasta biopython • 2.7k views
ADD COMMENT
3
Entering edit mode
6.1 years ago
h.mon 35k

maskfasta from bedtools.

ADD COMMENT
0
Entering edit mode

That was a simple solution and it worked perfectly. I was overthinking how to solve it. Thank you!

ADD REPLY

Login before adding your answer.

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