Skip to content

Commit 665c29a

Browse files
author
timbitz
committed
changed default TSL warning to 3+
1 parent a903483 commit 665c29a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/refset.jl

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ struct RefGene
1414
acc::CoordTuple
1515
txst::CoordTuple
1616
txen::CoordTuple
17-
# orfst::CoordTuple
18-
# orfen::CoordTuple
1917
exons::CoordTree
2018
length::Float64
2119
reftx::Vector{RefTx}
@@ -55,8 +53,6 @@ function load_refflat( fh; txbool=true )
5553
gnacc = Dict{GeneName,CoordTuple}()
5654
gntxst = Dict{GeneName,CoordTuple}()
5755
gntxen = Dict{GeneName,CoordTuple}()
58-
# gnorfst = Dict{GeneName,CoordTuple}()
59-
# gnorfen = Dict{GeneName,CoordTuple}()
6056
gnlens = Dict{GeneName,CoordTuple}()
6157
gnexons = Dict{GeneName,CoordTree}()
6258
gnreftx = Dict{GeneName,Vector{RefTx}}()
@@ -163,8 +159,6 @@ function load_gtf( fh; txbool=true, suppress=false )
163159
gnacc = Dict{GeneName,CoordTuple}()
164160
gntxst = Dict{GeneName,CoordTuple}()
165161
gntxen = Dict{GeneName,CoordTuple}()
166-
# gnorfst = Dict{GeneName,CoordTuple}()
167-
# gnorfen = Dict{GeneName,CoordTuple}()
168162
gnlens = Dict{GeneName,CoordTuple}()
169163
gnexons = Dict{GeneName,CoordTree}()
170164
gnreftx = Dict{GeneName,Vector{RefTx}}()
@@ -240,13 +234,13 @@ function load_gtf( fh; txbool=true, suppress=false )
240234
support,val = fetch_meta( "transcript_support_level", metaspl )
241235

242236
# if we observe low transcript support levels, we will warn the user
243-
if (support != "_" && support != "1" && support != "NA")
237+
if (support != "_" && support != "1" && support != "2" && support != "NA")
244238

245239
if suppress
246240
continue
247241
elseif !warning
248242
println(STDERR, "")
249-
warn("Using low quality Transcript Support Levels (TSL 2-5) in your GTF file is not recommended!\nFor more information on TSL, see: http://www.ensembl.org/Help/Glossary?id=492\n\nIf you would like Whippet to ignore these when building its index, use `--suppress-low-tsl` option!\n\n")
243+
warn("Using low quality Transcript Support Levels (TSL 3+) in your GTF file is not recommended!\nFor more information on TSL, see: http://www.ensembl.org/Help/Glossary?id=492\n\nIf you would like Whippet to ignore these when building its index, use `--suppress-low-tsl` option!\n\n")
250244

251245
warning=true
252246
end

0 commit comments

Comments
 (0)