Skip to content

Conversation

@natir
Copy link
Contributor

@natir natir commented Oct 14, 2018

Hi everyone,

It's my first pull request to flowcraft, so I probably make many mistake, thank for your help.

I add bcalm recently in bioconda, so it's possible the biocontainer image isn't build.

@sjackman sjackman mentioned this pull request Oct 14, 2018
15 tasks
@codecov-io
Copy link

codecov-io commented Oct 14, 2018

Codecov Report

Merging #149 into dev will increase coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #149      +/-   ##
==========================================
+ Coverage   43.48%   43.55%   +0.06%     
==========================================
  Files          63       63              
  Lines        5889     5896       +7     
==========================================
+ Hits         2561     2568       +7     
  Misses       3328     3328
Impacted Files Coverage Δ
flowcraft/generator/engine.py 90.96% <ø> (ø) ⬆️
flowcraft/generator/components/assembly.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8853ed6...c63e7b8. Read the comment docs.

Copy link
Collaborator

@tiagofilipe12 tiagofilipe12 left a comment

Choose a reason for hiding this comment

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

Hi @natir ! Welcome to FlowCraft! I made some suggestions to your PR but I didn't test the module, just checked the code. Maybe @ODiogoSilva also has some suggestions!
Also please add this new component to changelog.md so we can track the changes made to the next release of FlowCraft.

"seq_typing": typing.SeqTyping,
"sistr": typing.Sistr,
"skesa": assembly.Skesa,
"bcalm": assembly.Bcalm,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Although this isn't required at all, for code reading it is easier to maintain the alphabetical order. Can you please change this to keep the alphabetical order of the process_map dict?

"cpus": 4,
"memory": "{ 5.GB * task.attempt }",
"container": "quay.io/biocontainers/quast",
"version": "2.2.0",
Copy link
Collaborator

Choose a reason for hiding this comment

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

are you sure that this is the version of the container that you want to build? I couldn't find it in here.

Copy link
Contributor

Choose a reason for hiding this comment

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

The Docker image doesn't exist yet, but I think it's being built automatically.
https://quay.io/repository/biocontainers/bcalm
The version number will be different. You'll have to get it once the build completes from
https://quay.io/repository/biocontainers/bcalm?tab=tags

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When image are build I fix this issue.

@@ -0,0 +1,30 @@
# Check parameter
Copy link
Collaborator

Choose a reason for hiding this comment

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

Comments in groovy language use // instead of #. Please edit all the comments to // instead of #.

val KmerSize from Channel.value(params.bcalmKmerSize{{param_id}})

output:
file "*"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you require that all the files generated by bcalm are passed to the output channel so it can link with other processes? Or can you narrow them somehow?, for instance like you did for the publishDir.

@tiagofilipe12 tiagofilipe12 changed the base branch from master to dev October 14, 2018 20:30
Copy link
Collaborator

@ODiogoSilva ODiogoSilva left a comment

Choose a reason for hiding this comment

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

Hi @natir , thanks for the really nice contribution and it looks almost completely ready. I've left only a couple of comments, of which the clearInput parameter is the most important.

self.input_type = "fastq"
self.output_type = "fasta"

self.dependencies = ["integrity_coverage"]
Copy link
Collaborator

Choose a reason for hiding this comment

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

From what I see in the nextflow template, this dependency is not really required, right?

Copy link
Collaborator

@tiagofilipe12 tiagofilipe12 left a comment

Choose a reason for hiding this comment

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

Seems good to me. Let's just wait for the final tag version of the docker image before merging into dev. Also changelog will be conflicting with the current dev changelog.md. You will need to update your branch so that it can properly merge with the dev. Good work 👍 !

changelog.md Outdated

### New components
- Added component `fast_ani`.
- Added component `bcalm`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hmm this should be on the next release of the dev branch and not under the 1.3.1 release. But to do so you will need to merge the dev branch into your fork so that you can you can resolve the conflicts with dev

@sjackman
Copy link
Contributor

The bcalm recipe was accepted 8 days ago, but there's not yet a Biocontainer for it.
See bioconda/bioconda-recipes#11350 (comment)

@sjackman
Copy link
Contributor

The bcalm image exists now! https://quay.io/repository/biocontainers/bcalm?tab=tags

Copy link
Collaborator

@ODiogoSilva ODiogoSilva left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for the effort 👍

@ODiogoSilva ODiogoSilva merged commit ce5dee3 into assemblerflow:dev Oct 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants