-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update: Include sample_name IRIDA-Next input column #23
Conversation
|
Next I will add some |
As this is a IRIDA-Next feature, I ran it in IRADA-Next and it runs without any issue. |
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.
This looks really great. Thanks so much @sgsutcliffe for your work on this 😄 . I tested out in IRIDA Next and it all works.
In addition to the comment I made in-line, I'm wondering if, for some of the output (in particular for ArborView) we could have a column for both sample
and sample_name
?
That is, to add another column in the above output for sample
which is filled in with the IRIDA Next identifier.
I believe this could be implemented by adding a new value to the metadata_headers
and metadata_rows
to pass to the MAP_TO_TSV
process:
arboratornf/workflows/cluster_splitter.nf
Lines 77 to 91 in da8ef92
metadata_headers = Channel.value( | |
tuple( | |
ID_COLUMN, params.metadata_partition_name, | |
params.metadata_1_header, params.metadata_2_header, | |
params.metadata_3_header, params.metadata_4_header, | |
params.metadata_5_header, params.metadata_6_header, | |
params.metadata_7_header, params.metadata_8_header) | |
) | |
// Metadata rows: | |
metadata_rows = input_assure.result.map{ | |
meta, mlst_files -> tuple(meta.id, meta.metadata_partition, | |
meta.metadata_1, meta.metadata_2, meta.metadata_3, meta.metadata_4, | |
meta.metadata_5, meta.metadata_6, meta.metadata_7, meta.metadata_8) | |
}.toList() |
What do you think? Do you have any input on this @emarinier ?
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.
This looks great Steven!
I took a shot at it. 6a2cd79 Had to modify a lot of tests to accomodate the change. |
Not sure how this update broke things per se bcause it looks like the CI are failing due to locidex container not being loaded.
Removed my local locidex images and re-ran |
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.
Thanks so much for all your great work @sgsutcliffe . This is amazing. Thanks for making the changes I requested/adding the sample names to ArborView 😄
There is one other comment I do have given in-line.
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 just tested in IRIDA Next. This all works with ArborView now. Thanks so much for all your work on this 😄
Modified the template for input
samplesheet.csv
file to include thesample_name
column in addition tosample
in-line with changes to IRIDA-Next update as seen with the speciesabundance pipeline and staramrnf. What this means is that the output files and thesample
name will be changed tosample_name
if asample_name
is called. Ifarborator
is being locally then thesample_name
can be left blank.Made a few changes:
-
sample_name
special characters will be replaced with"_"
- If no
sample_name
is supplied in the columnsample
will be used- To avoid repeat values for
sample_name
allsample_name
values will be suffixed withsample
- Tests to check that the variety of different
sample_names
work with thePR checklist
nf-core lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).nf-test
to test new featuredocs/usage.md
is updated.CHANGELOG.md
is updated.README.md
is updated (including new tool citations and authors/contributors).