Skip to content
Snippets Groups Projects
Commit c8d8eb7a authored by James Stalker's avatar James Stalker
Browse files

Merge from branch 19

parent 225a7d17
No related branches found
No related tags found
No related merge requests found
......@@ -84,6 +84,9 @@ sub fetch_all_by_Slice {
}
#create a snp object through a fast (hacky) constructor
my $STATUS = $arrayref->[6];
$STATUS =~s/-/ /;
$STATUS = $STATUS eq 'no info' ? 'suspected' : "proven $STATUS";
my $snp = Bio::EnsEMBL::SNP->new_fast(
{ 'dbID' => $arrayref->[0],
'_gsf_start' => $arrayref->[1] - $slice_start + 1,
......@@ -93,10 +96,12 @@ sub fetch_all_by_Slice {
'_type' => $arrayref->[4],
'_range_type' => $arrayref->[5],
'_validated' => $arrayref->[6],
'status' => $STATUS,
'alleles' => $arrayref->[7],
'_ambiguity_code' => $arrayref->[10],
'_snpclass' => $arrayref->[8],
'_mapweight' => $arrayref->[9],
'_source' => $arrayref->[11],
'_source_tag' => $arrayref->[11],
'link' => \@links });
push @snps, $snp;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment