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

maybe a simpler way #1

Closed
shenwei356 opened this issue Feb 13, 2018 · 2 comments
Closed

maybe a simpler way #1

shenwei356 opened this issue Feb 13, 2018 · 2 comments

Comments

@shenwei356
Copy link

cut is used to split id1_L001_R1_001.fastq.gz by _ to get the sample ID.

ls *R1* | cut -d _ -f 1 | sort | uniq \
    | while read id; do \
        cat $id*R1*.fastq.gz > $id.R1.fastq.gz;
        cat $id*R2*.fastq.gz > $id.R2.fastq.gz;
      done
stephenturner added a commit that referenced this issue Feb 13, 2018
@stephenturner
Copy link
Owner

thanks added suggestion to README in 2c6e0f9 #2

@IshaMonga
Copy link

It's not working accurately for sample IDs like "A11_Barcodexxx_S11_L001_R1_001". It cat together all L001 pertaining to sample ID A11 with different barcodes also

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

No branches or pull requests

3 participants