Thanks, Dave Carlson. Can I use whole genome in salmon for -- decoy command?
after running this command using whole genome as decoy sequence:
salmon index -t /home/tesf/rna_analysis/transcripts.fa -i transcripts_index --decoys /home/tesf/rna_analysis/Mtb_ref/Mtb/NC_018143_TB.fna -k 31
I encountered the following error:
Version Info: This is the most recent version of salmon.
index ["transcripts_index"] did not previously exist . . . creating it
[2024-03-06 12:55:24.734] [jLog] [info] building index
out : transcripts_index
[2024-03-06 12:55:24.734] [puff::index::jointLog] [info] Running fixFasta
[2024-03-06 12:55:24.773] [puff::index::jointLog] [critical] The decoy name TGGGCCCGCCGGTGGGCGGCCAGCGCATCCAAAAACGAATTGGCGGCCGCATAGTTGGCCTGGCCCGACG was encountered more than once --- please ensure all decoy names and sequences are unique.
[2024-03-06 12:55:24.775] [puff::index::jointLog] [error] The fixFasta phase failed with exit code 1
How do I fix it?
Is there any specific reason why you are using Salmon for alignment? You can also try hisat2 (splice aligner) for Mtb genome alignment.