Skip to content

Conversation

@KajusC
Copy link
Collaborator

@KajusC KajusC commented Oct 31, 2024

Implemented revel with optional parameters for geneticist. Method was reformatted from Nojus' method

Method was not tested due to time required to test it.

@KajusC KajusC added the tool label Oct 31, 2024
@KajusC KajusC requested a review from Strexas October 31, 2024 18:56
@KajusC KajusC self-assigned this Oct 31, 2024
Comment on lines +244 to +247
if os.path.exists(input_vcf):
os.remove(input_vcf)
if os.path.exists(output_vcf):
os.remove(output_vcf)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can understand removing output in case of error, but why do you remove input?

Comment on lines +235 to +243
try:
output_vcf = run_spliceai(input_vcf, fasta_path)
spliceai_scores = parse_spliceai_vcf(output_vcf)

scores_df = pd.DataFrame(spliceai_scores)
scores_df.columns = [f"{col}_spliceai" for col in scores_df.columns]
data_copy = pd.concat([data_copy.reset_index(drop=True),
scores_df.reset_index(drop=True)], axis=1)
finally:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What error expected? If error happens, how do we know what error happened?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants