-
Notifications
You must be signed in to change notification settings - Fork 3
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
Adds possibility to make drop database #147
Conversation
|
I'll give this a go now! Will let you know how it goes. |
A first question. Should it be possible to generate the db without assigning the three DROP annotation parameters? Seems to me that it skipped DROP entirely when running without them. |
It should work, those options are now optional :) |
Looks like it is passing the DROP config building step now, nice! We will see whether it passes the AE and AS steps as well, will let you know. |
Great 🤞 |
Some updates. It initially crashed. I recognize the error from my previous testing (gagneurlab/drop#568). When debugging before, the error came from the columns with Also, I think it needs the After doing the following updates, it is running for me:
After these changes it has been running fine for 15+ minutes. We'll see how it goes. |
Nice! Did you just remove the |
I totally removed it. Haven't tested what happens if leaving it empty (i.e. without the 'NA' strings). |
The aberrant expression run was successful! I now see the I'll try the splicing module next. Caching did not seem to work for the AE process though - it restarted when I did |
Happy to hear that the AE module worked 😄 |
For the splicing, I am running into the same DROP error as I received previously. It seems there is a bug triggered when running with no external counts. Seems to be a silly issue, due to symlink and create a folder in the same location. See issue: gagneurlab/drop#558 Have you managed to get around this somehow? 🤔 |
I have run without external counts but have not encountered this issue 🤔 |
Hmm, strange. Was it a different version of DROP? Yes, I still get it on reruns! |
No, same version |
I think I figured out the issue (see notes in gagneurlab/drop#558). Seems the splicing workflow cannot handle a relative "root" path as it will yield an invalid softlink in one step. I am trying now a run where I have asigned the path in
Before it was:
|
Great! Let me know how it goes 😄 |
Now it passed that step! Still crashing though :( In the step The debugging continues ... |
modules/local/drop_config_runAE.nf
Outdated
--padjcutoff ${drop_padjcutoff_ae} \\ | ||
$zscorecutoff \\ | ||
--output config.yaml | ||
|
||
snakemake aberrantExpression --cores ${task.cpus} --rerun-triggers mtime $args | ||
|
||
if [[ !skip_export_counts_drop ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this will work as intended.
I am testing running it as such now:
if [[ "${skip_export_counts_drop}" == "false" ]]; then
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have just finished running it and it did work for us. Let me know how it goes for you. However, there was a mistake in the output side and it only copied the file for the counts instead of the created folder. I have just corrected that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm. Have you tried running with the setting turned both on and off?
This is bash here, i.e. you would need to prefix the variable with $
for the variable to be recognized.
Similarly to how you are doing below:
--genome_assembly $genome_assembly \\
Or am I missing something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to find the old error messages, but did only find my crashes resolved by mkdir -p
. Seems it shouldn't work, but not sure 🤔 I'll let you know if I run into this again, that time with actual error messages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will give it another try and get back to you
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, the folder appears even when the skip = true. I have tested your suggestion and it works, so I will update the code. Thanks for noticing :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have to leave the python scripts for someone else 😄
Co-authored-by: Felix Lenner <52530259+fellen31@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment above about the python still stands, rest looks good to me! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So, I think the python scripts are good for now. In further development, I would suggest:
- using type hints systematically
- cover all functions with docstrings
- split into smaller functions
df_samples["COUNT_OVERLAPS"] = True | ||
df_samples.to_csv(out_file, index=False, sep="\t") | ||
else: | ||
df_reference: DataFrame = read_csv(ref_annot, sep="\t") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you are type hinting, it is nice and you could try using it more
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I will do so on one of the next PRs
Co-authored-by: Annick Renevey <47788523+rannick@users.noreply.github.com>
PR checklist
nf-core lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).nextflow run . -profile debug,test,docker --outdir <OUTDIR>
).docs/usage.md
is updated.docs/output.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).