1f3dcd25bcbefcda72218a76f0cb609460bc9b98,nucleus/examples/ascii_pileup.py,,main,#,45
Before Change
r = ranges.parse_literal(argv[2])
position = r.start
with sam.SamReader(in_sam) as sam_reader:
reads = sam_reader.query(r)
pos_seq_pairs = sorted(
(read.alignment.position.position, read.aligned_sequence)
for read in reads)
if not pos_seq_pairs:
print("No overlapping reads found for", argv[2])
sys.exit(0)
left_position = pos_seq_pairs[0][0]
for start, seq in pos_seq_pairs:
print_read(left_position, start, position, seq)
if __name__ == "__main__":
app.run(main)
After Change
return -1
in_sam = argv[1]
query = argv[2]
print("\n".join(ascii_pileup(in_sam, query)))
if __name__ == "__main__":
app.run(main)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: google/nucleus
Commit Name: 1f3dcd25bcbefcda72218a76f0cb609460bc9b98
Time: 2019-05-03
Author: no-reply@google.com
File Name: nucleus/examples/ascii_pileup.py
Class Name:
Method Name: main
Project Name: galeone/dynamic-training-bench
Commit Name: 0a68639f4c33323274e7829b9349d0170dc6c8ea
Time: 2017-02-08
Author: nessuno@nerdz.eu
File Name: evaluate.py
Class Name:
Method Name:
Project Name: snorkel-team/snorkel
Commit Name: b56a4b355dfc302fa449d223e065af3a7acac986
Time: 2018-05-03
Author: dnicholson329@gmail.com
File Name: snorkel/learning/pytorch/noise_aware_model.py
Class Name: TorchNoiseAwareModel
Method Name: save
Project Name: daavoo/pyntcloud
Commit Name: b1004960919dd1671da86dad6c465d4b6ad69d62
Time: 2017-04-07
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/plot/points.py
Class Name:
Method Name: plot_points