Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

move protocol s3 from qio to qpicard #226

Closed
wants to merge 6 commits into from
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,9 @@
*
* This code is released under the terms outlined in the included LICENSE file.
*/
package org.qcmg.pileup;
package org.qcmg.common.model;


import org.qcmg.common.model.Accumulator;
import org.qcmg.common.model.ChrPosition;
import org.qcmg.common.model.Classification;
import org.qcmg.common.model.GenotypeEnum;
import org.qcmg.common.vcf.VcfRecord;

@Deprecated
Expand Down
1 change: 0 additions & 1 deletion qmotif/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ repositories { mavenCentral() }
dependencies {
configurations.compile.transitive = true
api project(':qcommon')
api project(':qio')
api project(':qbamfilter')
api project(':qpicard')

Expand Down
1 change: 0 additions & 1 deletion qpicard/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ def isExecutable = false
dependencies {
configurations.compile.transitive = true
api project(':qcommon')
api project(':qio')

api 'com.github.broadinstitute:picard:1.130'
api 'com.github.samtools:htsjdk:2.14.1'
Expand Down
2 changes: 1 addition & 1 deletion qpicard/src/org/qcmg/picard/SAMFileReaderFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import org.qcmg.common.log.QLogger;
import org.qcmg.common.log.QLoggerFactory;
import org.qcmg.common.string.StringUtils;
import org.qcmg.protocol.s3.S3AwareURLStreamHandlerFactory;
import org.qcmg.picard.s3.S3AwareURLStreamHandlerFactory;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I really don't understand this move. The s3 package is for low-level AWS operations - for example, all it ever throws is IOException. picard is specifically for handling fastq/bam/sam sequence data which is a way more specialized task. By moving this out of qio into qpicard that means any time I want to access ANY s3 file stream, whether it contains a VCF, text or whatever, I have to import a sequence data handling package. That just seems wrong to me.
A lot of my reluctance I think comes from my (very imperfect) understanding of what problem this is attempting to solve. It seems like if the issue is multiple paths to the same dependency, that is something that should be fixed in the build configuration (with excludes) rather than restructuring packages themselves.


public class SAMFileReaderFactory {
// EnumSet<Option> defultOption = SamReaderFactory.Option.DEFAULTS;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.qcmg.protocol.s3;
package org.qcmg.picard.s3;

import java.net.URLStreamHandler;
import java.net.URLStreamHandlerFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.qcmg.protocol.s3;
package org.qcmg.picard.s3;

import java.io.IOException;
import java.io.InputStream;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.qcmg.protocol.s3;
package org.qcmg.picard.s3;

import java.io.IOException;
import java.net.URL;
Expand Down
2 changes: 1 addition & 1 deletion qsnp/src/org/qcmg/snp/MuTectPipeline.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
import org.qcmg.common.vcf.VcfRecord;
import org.qcmg.picard.SAMFileReaderFactory;
import org.qcmg.picard.util.SAMUtils;
import org.qcmg.pileup.QSnpRecord;
import org.qcmg.common.model.QSnpRecord;
import org.qcmg.common.model.Classification;
import org.qcmg.snp.util.IniFileUtil;
import org.qcmg.tab.TabbedFileReader;
Expand Down
2 changes: 1 addition & 1 deletion qsnp/src/org/qcmg/snp/PileupPipeline.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import org.qcmg.common.model.ChrPosition;
import org.qcmg.common.string.StringUtils;
import org.qcmg.pileup.PileupFileReader;
import org.qcmg.pileup.QSnpRecord;
import org.qcmg.common.model.QSnpRecord;
import org.qcmg.common.model.Classification;
import org.qcmg.snp.util.IniFileUtil;
import org.qcmg.snp.util.QJumperWorker;
Expand Down
2 changes: 1 addition & 1 deletion qsnp/src/org/qcmg/snp/TorrentPipeline.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import org.qcmg.picard.QJumper;
import org.qcmg.picard.util.PileupElementUtil;
import org.qcmg.picard.util.SAMUtils;
import org.qcmg.pileup.QSnpRecord;
import org.qcmg.common.model.QSnpRecord;
import org.qcmg.snp.filters.AdjacentIndelFilter;
import org.qcmg.snp.filters.EndOfReadFilter;
import org.qcmg.snp.filters.MultipleAdjacentSnpsFilter;
Expand Down
2 changes: 1 addition & 1 deletion qsnp/src/org/qcmg/snp/util/BAMPileupUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import org.qcmg.common.model.QSnpGATKRecord;
import org.qcmg.picard.util.PileupElementUtil;
import org.qcmg.picard.util.SAMUtils;
import org.qcmg.pileup.QSnpRecord;
import org.qcmg.common.model.QSnpRecord;
import org.qcmg.snp.util.QJumperWorker.Mode;

public class BAMPileupUtil {
Expand Down
2 changes: 1 addition & 1 deletion qsnp/src/org/qcmg/snp/util/QJumperWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import org.qcmg.common.log.QLoggerFactory;
import org.qcmg.common.model.QSnpGATKRecord;
import org.qcmg.picard.QJumper;
import org.qcmg.pileup.QSnpRecord;
import org.qcmg.common.model.QSnpRecord;

public class QJumperWorker<T> implements Runnable {

Expand Down
2 changes: 1 addition & 1 deletion qsnp/test/org/qcmg/snp/util/BAMPileupUtilTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.qcmg.common.util.SnpUtils;
import org.qcmg.common.vcf.VcfRecord;
import org.qcmg.common.vcf.VcfUtils;
import org.qcmg.pileup.QSnpRecord;
import org.qcmg.common.model.QSnpRecord;
import org.qcmg.snp.util.QJumperWorker.Mode;

public class BAMPileupUtilTest {
Expand Down
1 change: 0 additions & 1 deletion qtesting/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ def isExecutable = false

dependencies {
configurations.compile.transitive = true
api project(':qio')
api project(':qcommon')
}