-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from stephen-riley/main
CLI support, progress bar w/ ETA
- Loading branch information
Showing
16 changed files
with
395 additions
and
66 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 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,35 @@ | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using Ovation.FasterQC.Net.Utils; | ||
|
||
namespace Ovation.FasterQC.Net.Modules | ||
{ | ||
public static class ModuleFactory | ||
{ | ||
private static readonly Dictionary<string, IQcModule> moduleMap = new() | ||
{ | ||
["BasicStatistics"] = new BasicStatistics(), | ||
["KMerContent"] = new KMerContent(), | ||
["NCountsAtPosition"] = new NCountsAtPosition(), | ||
["PerPositionSequenceContent"] = new PerPositionSequenceContent(), | ||
["PerSequenceGcContent"] = new PerSequenceGcContent(), | ||
["QualityDistributionByBase"] = new QualityDistributionByBase(), | ||
["MeanQualityDistribution"] = new MeanQualityDistribution(), | ||
["SequenceLengthDistribution"] = new SequenceLengthDistribution(), | ||
["PerPositionQuality"] = new PerPositionQuality(), | ||
}; | ||
|
||
public static IEnumerable<IQcModule> Create(CliOptions settings) | ||
{ | ||
if (settings.ModuleNames.First() == "all") | ||
{ | ||
settings.ModuleNames = moduleMap.Keys; | ||
return moduleMap.Values; | ||
} | ||
else | ||
{ | ||
return settings.ModuleNames.Select(n => moduleMap[n]); | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# FasterQC.net | ||
|
||
A C# version of [FastQC](https://github.com/s-andrews/FastQC) | ||
|
||
## Usage | ||
|
||
``` | ||
> dotnet run -- --help | ||
Ovation.FasterQC.Net 1.0.0 | ||
Copyright (C) 2022 Ovation.FasterQC.Net | ||
-v, --verbose Set output to verbose messages. | ||
--debug Show diagnostic output. Can only use with --verbose. | ||
-p, --progress Show progress bar. Cannnot use with --verbose. | ||
-i, --input Required. Input filename. | ||
-o, --output Output filename. Defaults to STDOUT. | ||
-b, --bam Assume BAM format. | ||
-f, --fastq Assume FASTQ format. | ||
-z, --zipped Assume input file is gzipped. | ||
-m, --modules Required. Space-separated list of modules to run, or 'all'. | ||
--help Display this help screen. | ||
--version Display version information. | ||
``` |
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
Oops, something went wrong.