Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

index error #919

Open
JXAUDZF opened this issue Mar 18, 2024 · 3 comments
Open

index error #919

JXAUDZF opened this issue Mar 18, 2024 · 3 comments

Comments

@JXAUDZF
Copy link

JXAUDZF commented Mar 18, 2024

code:
cut -f 1 -d ' ' ./SQANTI3_1_output/muscle_corrected.fasta > ./SQANTI3_1_output/cdna.new.fa
grep '^>' ./SQANTI3_1_output/cdna.new.fa | cut -d ' ' -f 1 | sed 's/^>//g' > /home/Dingzifeng/SQANTI3_1_output/cdna.decoys.txt
cat ./SQANTI3_1_output/cdna.new.fa ~/data/Sus_scrofa.Sscrofa11.1.dna.toplevel.fa > ./trans_genome.fa
singularity exec /home/Singusoft/miniconda3_bedtools_mashmap_salmon.simg salmon index -t /home/Dingzifeng/SQANTI3_1_output/trans_genome.fa -d /home/Dingzifeng/SQANTI3_1_output/cdna.decoys.txt -i ~/salmon_index

result:
[2024-03-18 23:23:14.069] [puff::index::jointLog] [critical] Observed a non-decoy sequence [1] after having already observed a decoy. However, it is required that any decoy target records appear, consecutively, at the end of the input fasta file. Please re-format your input file so that all decoy records appear contiguously at the end of the file, after all valid (non-decoy) records

@alexdhill
Copy link

Looks like you are using ./SQANTI3_1_output/cdna.new.fa as your decoy file. In the indexed file, decoy sequences must come after the txome sequences, so:
cat ./SQANTI3_1_output/cdna.new.fa ~/data/Sus_scrofa.Sscrofa11.1.dna.toplevel.fa > ./trans_genome.fa

should instead be
cat ~/data/Sus_scrofa.Sscrofa11.1.dna.toplevel.fa ./SQANTI3_1_output/cdna.new.fa > ./trans_genome.fa

such that the decoy sequences occur last.

@JXAUDZF
Copy link
Author

JXAUDZF commented Mar 20, 2024

The ~/data/Sus_scrofa.Sscrofa11.1.dna.toplevel.fa is genome, the ./SQANTI3_1_output/cdna.new.fa is trans, therefore I don't know where is error.

@alexdhill
Copy link

alexdhill commented Mar 21, 2024

You specify in the salmon index command that the cda.new.fa sequences are the decoys though.
-d /home/Dingzifeng/SQANTI3_1_output/cdna.decoys.txt
This line means "use the sequences with the titles in the text file as my decoy sequences."
If the cda.new.fa sequences are not supposed to be decoys, remove that flag. Otherwise, my above answer should resolve the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants