GFF3 to fasta (error)
Hi im trying to extract some sequences from my GFF3 file to fasta but when I run this:
$ bedtools getfasta -fi Muschr4.fsa -bed Muschr4.fsa.mod.pass.list.gff3 -fo ERVCom.fa
I get
WARNING. chromosome (seq0) was not found in the FASTA file. Skipping.
WARNING. chromosome (seq0) was not found in the FASTA file. Skipping.
WARNING. chromosome (seq0) was not found in the FASTA file. Skipping.
WARNING. chromosome (seq0) was not found in the FASTA file. Skipping.
• 2,108 views
•
link
1 answer
awk '{if ($1~/[0-9]+/) print $10"\t"$1}' Muschr4.fsa.mod.pass.list > Muschr4.fsa.mod.pass.list.extract
perl $path/LTR_retriever/bin/call_seq_by_list.pl Muschr4.fsa.mod.pass.list.extract -C Muschr4.fsa.mod > Muschr4.fsa.mod.pass.list.extract.fa
This solved it
• 1 views
•
link
Log in to answer this question.
Do chromosome identifiers match in fasta and GFF files? That is the first thing to check. These are warnings so they may be benign.
Paste the output of these commands here
AND
Then i tried with bed but still no working
It looks like you have things named
seq0in your GFF file but not in fasta file. Can you confirm bygrep "seq0" your_gff | head -5Please use
ADD COMMENT/ADD REPLYwhen responding to existing posts to keep threads logically organized.