Skip to content
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

Should appending sample modifiers override column values in sample.csv? #481

Open
donaldcampbelljr opened this issue Mar 7, 2024 · 1 comment
Labels

Comments

@donaldcampbelljr
Copy link
Contributor

I noticed that appending a value via sample modifiers in the project config will not override a column value if it already exists in the sample.csv table, e.g.

name: looper_advanced_test
pep_version: 2.0.0
sample_table: annotation_sheet.csv
sample_modifiers:
  append:
    toggle: 0
sample_name,protocol,data_source,SRR,Sample_geo_accession,read1,read2,toggle
sample1,PROTO1,SRA,SRR5210416,GSM2471255,SRA_1,SRA_2,1
sample2,PROTO1,SRA,SRR5210450,GSM2471300,SRA_1,SRA_2,1
sample3,PROTO2,SRA,SRR5210398,GSM2471249,SRA_1,SRA_2,1

toggle will still be set to 1 for all the samples.

Should it override? Or should we at least warn the user that this sample modifier is being ignored?

@nsheff
Copy link
Contributor

nsheff commented Mar 7, 2024

I think No, the value in the table should take precedence over an append modifier.

A warning would be fine with me, but to me this is the expected behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants