Mercurial > repos > rnateam > bctools
comparison merge_pcr_duplicates.py @ 14:570a7de9f151 draft
read from bam; fix header issue
author | rnateam |
---|---|
date | Mon, 30 Nov 2015 07:53:36 -0500 |
parents | 17ef0e0dae68 |
children | 0b9aab6aaebf |
comparison
equal
deleted
inserted
replaced
13:258b6f9e19ab | 14:570a7de9f151 |
---|---|
110 alns = pd.read_csv( | 110 alns = pd.read_csv( |
111 args.alignments, | 111 args.alignments, |
112 sep="\t", | 112 sep="\t", |
113 names=["chrom", "start", "stop", "read_id", "score", "strand"]) | 113 names=["chrom", "start", "stop", "read_id", "score", "strand"]) |
114 | 114 |
115 # keep id parts up to first whitespace | |
116 alns["read_id"] = alns["read_id"].str.split(' ').str.get(0) | |
117 | |
115 # combine barcode library and alignments | 118 # combine barcode library and alignments |
116 bcalib = pd.merge( | 119 bcalib = pd.merge( |
117 bcs, alns, | 120 bcs, alns, |
118 on="read_id", | 121 on="read_id", |
119 how="inner", | 122 how="inner", |