Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. # input: in.bam, in.fastq, chunk_size
  2. i <- 0
  3. for fastq_read in in.fastq:
  4. bam_read <- extract fastq_read.read_name from in.bam
  5. n <- i modulo chunk_size
  6. write fastq_read to out.n.fastq
  7. write bam_read to out.n.bam
  8. i <- i + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement