-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.juliahistory
79 lines (73 loc) · 2.05 KB
/
.juliahistory
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
using GenomicVectors
?slide
?slide
?slide!
exit()
?slide
using GenomicVectors
using GenomicVectors
?slide
?slide!
?slide!
exit()
function GenomicRanges(genome_name, reader::BioAlignments.BAM.Reader)
info = GenomeInfo(genome_name, reader)
chr = String[]
left_pos = Int64[]
right_pos = Int64[]
str::Vector{Strand}
record = BAM.Record()
## FIXME: convert to genopos in the loop?
while !eof(reader)
read!(reader, record)
if BAM.ismapped(record)
push!(chr, BAM.refname(record))
push!(left_pos, leftposition(record))
push!(right_pos, rightposition(record))
push!(strand, strand(record))
end
end
GenomicRanges(chr, left_pos, right_pos, strands, info)
end
function GenomicRanges(genome_name, reader::BioAlignments.BAM.Reader)
info = GenomeInfo(genome_name, reader)
chr = String[]
left_pos = Int64[]
right_pos = Int64[]
str::Vector{Strand}
record = BAM.Record()
## FIXME: convert to genopos in the loop?
while !eof(reader)
read!(reader, record)
if BAM.ismapped(record)
push!(chr, BAM.refname(record))
push!(left_pos, leftposition(record))
push!(right_pos, rightposition(record))
push!(str, strand(record))
end
end
GenomicRanges(chr, left_pos, right_pos, strands, info)
end
function GenomicRanges(genome_name, reader::BioAlignments.BAM.Reader)
info = GenomeInfo(genome_name, reader)
chr = String[]
left_pos = Int64[]
right_pos = Int64[]
strand_pos::Vector{Strand}
record = BAM.Record()
## FIXME: convert to genopos in the loop?
while !eof(reader)
read!(reader, record)
if BAM.ismapped(record)
push!(chr, BAM.refname(record))
push!(left_pos, leftposition(record))
push!(right_pos, rightposition(record))
push!(strand_pos, strand(record))
end
end
GenomicRanges(chr, left_pos, right_pos, strand_pos, info)
end
exit()
Pkg.test("GenomicVectors")
methods(strand)
exit()