mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Check that chromosome number is >=0
This commit is contained in:
@@ -649,7 +649,8 @@ class Pileup( Tabular ):
|
||||
try:
|
||||
# chrom start in column 1 (with 0-based columns)
|
||||
# and reference base is in column 2
|
||||
int( hdr[1] )
|
||||
chrom = int( hdr[1] )
|
||||
assert chrom >= 0
|
||||
assert hdr[2] in [ 'A', 'C', 'G', 'T', 'N', 'a', 'c', 'g', 't', 'n' ]
|
||||
except:
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user