Skip to content

Commit

Permalink
Fix bug of non coding transcript HGVSc notations (#566)
Browse files Browse the repository at this point in the history
* Fix bug of non coding transcript HGVSc notations

* Remove unnecessary validations

* Update transcript model for NR_003085.2

* Mute debugging codes
  • Loading branch information
Li, Haochen authored and GitHub Enterprise committed Oct 25, 2020
1 parent 47211ec commit 06038b2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private void ApplyRnaEdits(StringBuilder sb)
}
}

public int Length => _sequence?.Length ?? _codingRegion.Length;
public int Length => _sequence?.Length ?? _codingRegion?.Length ?? 0;
public Band[] CytogeneticBands => null;

public string Substring(int offset, int length)
Expand Down
22 changes: 18 additions & 4 deletions VariantAnnotation/Caches/DataStructures/Transcript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public static ITranscript Read(BufferedBinaryReader reader,
// rnaEdits, translation);

}

if (id.WithVersion == "NM_175741.1" && sequenceProvider.Assembly != GenomeAssembly.GRCh38)
{
rnaEdits = new IRnaEdit[]
Expand All @@ -304,9 +304,23 @@ public static ITranscript Read(BufferedBinaryReader reader,
new RnaEdit(380,380,"C")
};

TranscriptValidator.Validate(sequenceProvider, chromosome, "NM_175741.1", gene.OnReverseStrand,
transcriptRegions,
rnaEdits, translation);
// TranscriptValidator.Validate(sequenceProvider, chromosome, "NM_175741.1", gene.OnReverseStrand,
// transcriptRegions,
// rnaEdits, translation);

}

if (id.WithVersion == "NR_003085.2" && sequenceProvider.Assembly != GenomeAssembly.GRCh38)
{
rnaEdits = new IRnaEdit[]
{
new RnaEdit(1703,1703,"G"),
new RnaEdit(2832,2831,"AAAAAAAAAAAAAAA"),
};

// TranscriptValidator.Validate(sequenceProvider, chromosome, "NR_003085.2", gene.OnReverseStrand,
// transcriptRegions,
// rnaEdits, translation);

}

Expand Down
Loading

0 comments on commit 06038b2

Please sign in to comment.