Skip to content

Commit 0a8a0d6

Browse files
committed
Some minor white space differences, which aren't all resolved but the previous indenting was weird anyway
1 parent 2f2e3d5 commit 0a8a0d6

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

bamhash_checksum_bam.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -126,21 +126,11 @@ int main(int argc, char const ** argv)
126126
count +=1;
127127
// Construct one string from record
128128
seqan::append(string2hash, record.qName);
129-
if(hasFlagLast(record)) {
129+
if(hasFlagLast(record)) {
130130
seqan::append(string2hash, "/2");
131131
} else {
132132
seqan::append(string2hash, "/1");
133-
}
134-
/*
135-
if (hasFlagFirst(record)) {
136-
seqan::append(string2hash, "/1");
137-
} else if (hasFlagLast(record)) {
138-
seqan::append(string2hash, "/2");
139-
} else {
140-
std::cerr << "ERROR: A record in " << info.bamFile << " has neither First or Last Flag.\n";
141-
return 1;
142133
}
143-
*/
144134

145135
seqan::append(string2hash, record.seq);
146136
seqan::append(string2hash, record.qual);

bamhash_checksum_fastq.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,12 @@ parseCommandLine(Fastqinfo & options, int argc, char const ** argv)
3535
setVersion(parser, BAMHASH_VERSION);
3636
setDate(parser, "Feb 2015");
3737

38-
addUsageLine(parser, "[\\fIOPTIONS\\fP] \\fI<in.fastq.gz>\\fP \\fI[in2.fastq.gz]\\fP");
38+
addUsageLine(parser, "[\\fIOPTIONS\\fP] \\fI<in1.fastq.gz>\\fP \\fI[in2.fastq.gz]\\fP");
3939
addDescription(parser, "Program for checksum of sequence reads. ");
4040

4141
addArgument(parser, seqan::ArgParseArgument(seqan::ArgParseArgument::INPUTFILE,"fastqfiles", true));
4242

4343
setValidValues(parser, 0,"fq fq.gz fastq fastq.gz");
44-
//setValidValues(parser, 1,"fastq fastq.gz");
4544

4645
addSection(parser, "Options");
4746
//add debug option:
@@ -107,9 +106,7 @@ int main(int argc, char const ** argv)
107106

108107
//Setup RecordReader for reading FASTQ file from gzip-compressed file
109108
seqan::RecordReader<seqan::Stream<seqan::GZFile>, seqan::SinglePass<> > reader1(gzStream1);
110-
//if(info.paired) {
111-
seqan::RecordReader<seqan::Stream<seqan::GZFile>, seqan::SinglePass<> > reader2(gzStream2);
112-
//}
109+
seqan::RecordReader<seqan::Stream<seqan::GZFile>, seqan::SinglePass<> > reader2(gzStream2);
113110

114111
// Read record
115112
while (!atEnd(reader1)) {

0 commit comments

Comments
 (0)