-
Notifications
You must be signed in to change notification settings - Fork 37
Sample naming fixes #121
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
Open
pontushojer
wants to merge
8
commits into
nf-core:dev
Choose a base branch
from
pontushojer:sample-naming
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Sample naming fixes #121
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
|
Warning Newer version of the nf-core template is available. Your pipeline is using an old version of the nf-core template: 3.2.0. For more documentation on how to update your pipeline, please see the nf-core documentation and Synchronisation documentation. |
… (w. read) and given sample name
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix #105 and some naming improvements, esp for MultiQC reports.
This PR modifies sample indexes to include leading zeros. To allow for multiple sample sharing the same sample name (
meta.sample) the sample id (meta.id) has a suffix (_#) corresponding to its row number in the samplesheet. This is used in the file naming and the MultiQC report. The issue with this is that a single end samplesample_1would get the idsample_1_1which would be the same id read1 of the paired end samplesamplewould get. To make it clear which part refers to the sample index and the read I have added leading zeros to the indices.sample_1->sample_1_01for a single end samplesample->sample_01_1for read1 in a paired end sampleIt is now clear what part of the suffix refers to the index (
01) and a possible read number (1).In the MultiQC report I have also modified the names using the
sample_names_replaceconfig option to clearly separate between the sample name given in the samplesheet and any suffix appended by theseqinspectorworkflow.Here is an example of what this looks like with a samplesheet containing three single end samples with one appearing twice (e.g. a rerun).
before (dev)
sample_1sample_1_1sample_1_1sample_2sample_1_2sample_1_2sample_3sample_1_3sample_1_3after (this PR)
sample_1sample_1_01sample_1 #01sample_2sample_1_02sample_1 #02sample_3sample_1_03sample_1 #03Examples of what the MultiQC report looks like now are show below
The only tool which still has ugly names is
seqfu stats, but this could be fixed once #126 is done.Paired end example
Here are the samples included
General Stats
before

after

FastQC
before

after

FastqScreen
before

after

Single end example
General stats
before

after

PR checklist
nf-core lint).nf-test test main.nf.test -profile test,docker).nextflow run . -profile debug,test,docker --outdir <OUTDIR>).docs/usage.mdis updated.docs/output.mdis updated.CHANGELOG.mdis updated.README.mdis updated (including new tool citations and authors/contributors).