-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/dragen rna fusion 420 (#588)
* Deleted VS launch settings and updated Nirvana to .NET Core 3.1 * Fixed file permissions * Updated file permissions * Fixed SaCommon.IndexSuffix spelling. Initial implementation of FusionCatcher file parser. * Added the gene fusion reader and writer. Also included end-to-end tests for the GeneFusionReader & GeneFusionWriter. * Add MakeUserError utility method. Add capability to write gene fusions. * Updated cytogenetic band support to skip lookup if the chromosome is unknown * Added new SAUtils command for creating COSMIC gene fusions * Created the GeneFusionJsonReader & Writer and some end-to-end unit tests. * Created a new gene fusions section in VariantAnnotation. Updated the gene fusions readers to inherit from IGeneFusionSaReader. Added gene relationships to GeneFusionSources. Added a new interface called ISaMetadata that contains Assembly, Version, and JsonKey. Moved SA provider after transcript annotation provider. * Forgot some stragglers. Nirvana is in a runnable state. * Removed unnecessary using statements. Removed HasStopCodonNotation from PositionOffset (HGVS). Removed extra reference bases from HGVS c. & g. duplications & inversions. Added lots of GeneFusionCaller unit tests. * Updated GeneFusionSource relationship entries. Added relationships to GeneFusionSourceWriterTests.cs. * Add support for calculating the codon position and detecting in-frame gene fusions. * Added support for disabling in-frame gene fusion detection if the IMPRECISE flag is provided in the VCF. * Created an InfoDataBuilder to improve INFO field parsing. Added legacy support for INV3 & INV5 handling in gene fusions. * Fixed issues with FusionCatcher SA creation. Finished integrating FusionCatcher with the NsaProvider. Suffering from high memory usage. * Dramatically reduced memory usage for FusionCatcher sources in Nirvana. Only using 102 MB at this time. * Added gene symbols to the FusionCatcher output. * Removed the coding pre-requisite for gene fusions. * Added unit tests - 95% coverage for VariantAnnotation and 59% for SAUtils. * Minor Resharper cleanup * Fixed an issue that caused the GeneFusionKey.Create method to error out if one of the Ensembl Gene IDs was null. * Fixed an issue that resulted from not factoring in the adjacency strand when evaluating the origin strand.
- Loading branch information
Stromberg, Michael
authored and
GitHub Enterprise
committed
May 18, 2021
1 parent
2a53306
commit 2d7f93f
Showing
167 changed files
with
4,146 additions
and
1,910 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Company>Illumina</Company> | ||
<Copyright>© 2020 Illumina, Inc.</Copyright> | ||
<FileVersion>3.13.0</FileVersion> | ||
<AssemblyVersion>3.13.0</AssemblyVersion> | ||
<Version>3.13.0</Version> | ||
<Copyright>© 2021 Illumina, Inc.</Copyright> | ||
<FileVersion>3.15.0</FileVersion> | ||
<AssemblyVersion>3.15.0</AssemblyVersion> | ||
<Version>3.15.0</Version> | ||
<Authors>Stromberg, Roy, Lajugie, Jiang, Li, and Kang</Authors> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using System; | ||
using System.Buffers; | ||
using System.IO; | ||
using Compression.Algorithms; | ||
|
||
namespace Compression.Utilities | ||
{ | ||
public static class BlockExtensions | ||
{ | ||
private static readonly Zstandard Zstd = new(21); | ||
|
||
public static byte[] ReadCompressedByteArray(this BinaryReader reader, ArrayPool<byte> bytePool) | ||
{ | ||
int uncompressedSize = reader.ReadInt32(); | ||
int compressedSize = reader.ReadInt32(); | ||
|
||
byte[] compressedBuffer = bytePool.Rent(compressedSize); | ||
byte[] uncompressedBuffer = bytePool.Rent(uncompressedSize); | ||
int numRead = reader.Read(compressedBuffer, 0, compressedSize); | ||
|
||
int len = Zstd.Decompress(compressedBuffer, compressedSize, uncompressedBuffer, uncompressedBuffer.Length); | ||
|
||
bytePool.Return(compressedBuffer); | ||
return uncompressedBuffer; | ||
} | ||
|
||
public static void WriteCompressedByteArray(this BinaryWriter writer, byte[] uncompressed, int uncompressedSize) | ||
{ | ||
ArrayPool<byte> bytePool = ArrayPool<byte>.Shared; | ||
int compressedBufferSize = Zstd.GetCompressedBufferBounds(uncompressedSize); | ||
byte[] compressedBuffer = bytePool.Rent(compressedBufferSize); | ||
|
||
int compressedSize = Zstd.Compress(uncompressed, uncompressedSize, compressedBuffer, compressedBuffer.Length); | ||
|
||
writer.Write(uncompressedSize); | ||
writer.Write(compressedSize); | ||
writer.Write(compressedBuffer, 0, compressedSize); | ||
|
||
double percentCompression = compressedSize / (double) uncompressedSize * 100.0; | ||
Console.WriteLine($"uncompressed: {uncompressedSize:N0}, compressed: {compressedSize:N0}, {percentCompression:0.0}%"); | ||
|
||
bytePool.Return(compressedBuffer); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<TargetFramework>netcoreapp2.1</TargetFramework> | ||
<TargetFramework>netcoreapp3.1</TargetFramework> | ||
<OutputPath>..\bin\$(Configuration)</OutputPath> | ||
<LangVersion>latest</LangVersion> | ||
</PropertyGroup> | ||
<Import Project="..\CommonAssemblyInfo.props" /> | ||
<ItemGroup> | ||
<PackageReference Include="AWSSDK.S3" Version="3.3.109.4" /> | ||
<PackageReference Include="AWSSDK.S3" Version="3.7.0.17" /> | ||
</ItemGroup> | ||
</Project> |
Oops, something went wrong.