8000 maybe a simpler way · Issue #1 · stephenturner/mergelanes · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
maybe a simpler way #1
Closed
Closed
@shenwei356

Description

@shenwei356

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0