-
Notifications
You must be signed in to change notification settings - Fork 1
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
How to create listgenes_core.txt file? #8
Comments
Hello @KTbiotech, The Let us know if this answers your question. Cheers, |
Dear Pedro, same like KTbiotech. if possible, could you give some detail for this procedure? |
Dear @KTbiotech and @bgka2009, The
You need to copy the list of files (Present_genes column) from the threshold chosen and paste it on a new file, one file per line, and name it If you simply copy and change the filename it will not work. Below is a small Python3 snippet to create a file with the genes list from the desired threshold. import csv
genes_95 = "path/to/Genes_95%.txt"
with open(genes_95, "r") as f:
genes_95_data = csv.DictReader(f, delimiter="\t")
for row in genes_95_data:
if row["Threshold"] == "[CHOSEN THRESHOLD]":
list_genes = row["Present_genes"].replace(" ", "\n")
output_dir = "path/to/output_dir/listgenes_core.txt"
with open(output_dir, "w") as out:
out.write(list_genes) This snippet is just a suggestion, you may use whatever procedure you are most confortable with. We will work on revising the tutorial instructions to make this and other issues more clear. Please let us know if you were able to solve the issue. |
Is there a way to create a file analysis/listgenes_core.txt? I don't see any instructions mentioning it.
The text was updated successfully, but these errors were encountered: