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

Automatically assign an unknown sample to project OTHER #22

Open
mihuber opened this issue Apr 15, 2019 · 1 comment
Open

Automatically assign an unknown sample to project OTHER #22

mihuber opened this issue Apr 15, 2019 · 1 comment
Assignees

Comments

@mihuber
Copy link
Member

mihuber commented Apr 15, 2019

If in the sample sheet an entry for the Sample_Project is not matching our predefined values Antibodies/Metagenomics/Plasmids/Resistance/Other, it should automatically be assigned to the project Other.

See lines 412 to 437 in DMS/openBIS/SampleSheet2openBIS.sh.

    ### [Data] section values
    elif [[ $section == "[Data]" && ${line[1]} && $s -gt 0 ]]
    then

        write_miseq_sample line[@]

        case ${line[8]} in
          Antibodies)
            anti_sample=true
            ;;
          Metagenomics)
            meta_sample=true
            ;;
          Other)
            other_sample=true
            ;;
          Plasmids)
            plasm_sample=true
            ;;
          Resistance)
            res_sample=true
            write_resistance_test line[@]
            ;;
          esac
        ((s+=1))
    fi
@mihuber
Copy link
Member Author

mihuber commented Nov 7, 2019

In the meantime, we also have RETROSEQ as a predefined project.

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

No branches or pull requests

2 participants