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

.vregion.annot.tsv #30

Open
Changle-cell opened this issue Oct 22, 2024 · 4 comments
Open

.vregion.annot.tsv #30

Changle-cell opened this issue Oct 22, 2024 · 4 comments

Comments

@Changle-cell
Copy link

Sorry to bother you. The output file '.vregion.annot.tsv' only saved results from one replicon. It's not what you want, isn't it? It seems you made mistake in line517:
df3 = df2.loc[df2['replicon'] == rep]
or maybe you should add the results in tsv file ranther than replace the results in line528 and line530:
subset.to_csv(os.path.join(base, relpathbase+".vregion_annot.tsv"), sep='\t', index_label="protein_ids")
Look forward to your reply soon. Thank you.

@faylward
Copy link
Owner

faylward commented Oct 24, 2024 via email

@Changle-cell
Copy link
Author

You can just merger the 'examples' to a single file with '$cat', and run the python script. You will find that the output file '.vregion.annot.tsv' only contains results from one of the two genomes.

@faylward
Copy link
Owner

faylward commented Oct 24, 2024 via email

@Changle-cell
Copy link
Author

Changle-cell commented Oct 25, 2024

Sorry, did you mean the script will only treat no more than one of the input sequences in a fasta file as being with some viral signatures without '-c' flag?

As I have used the script in 20 inputs and all the output 'vregion.annot.tsv' files contain no result or only results from one of the input sequences, I don 't think that is a coincidence.

If you need sample inputs, you can download from
Chlorokybus_atmophyticus
and
Klebsormidium_nitens

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