Skip to content
This repository was archived by the owner on Oct 29, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,22 @@
</distributionManagement>

<dependencies>
<!-- Remove this later https://github.com/googlegenomics/dataflow-java/issues/197 -->
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-codec-http2</artifactId>
<version>4.1.0.Final</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-all</artifactId>
<version>${io.grpc.version}</version>
<exclusions>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty-codec-http2</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.cloud.dataflow</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ public static interface Options extends
@Default.String("10473108253681171589")
String getVariantSetId();

@Override
void setVariantSetId(String variantSetId);

@Description("The class that determines the strategy for calculating the similarity of alleles.")
@Default.Class(SharedMinorAllelesCalculatorFactory.class)
Class<? extends CallSimilarityCalculatorFactory> getCallSimilarityCalculatorFactory();
Expand Down Expand Up @@ -113,13 +110,13 @@ public static void main(String[] args) throws Exception {
Pipeline p = Pipeline.create(options);
PCollection<Variant> processedVariants = null;

if(null != options.getSitesFilepath()) {
if (null != options.getSitesFilepath()) {
// Compute IBS on a list of sites (e.g., SNPs).
PCollection<StreamVariantsRequest> requests = p.apply(TextIO.Read.named("ReadSites")
.from(options.getSitesFilepath()))
.apply(new SitesToShards.SitesToStreamVariantsShardsTransform(prototype));

if(options.getHasNonVariantSegments()) {
if (options.getHasNonVariantSegments()) {
processedVariants = requests.apply(
new JoinNonVariantSegmentsWithVariants.RetrieveAndCombineTransform(auth, VARIANT_FIELDS));
} else {
Expand All @@ -136,7 +133,7 @@ public static void main(String[] args) throws Exception {
.apply(Create.of(requests))
.apply(new VariantStreamer(auth, ShardBoundary.Requirement.STRICT, VARIANT_FIELDS));

if(options.getHasNonVariantSegments()) {
if (options.getHasNonVariantSegments()) {
// Note that this is less exact compared to the above approach on sites.
// When not run on a whole chromosome or genome, any non-variant segments at the beginning of the region(s)
// are not considered due to the STRICT shard boundary used to avoid repeated data.
Expand Down