Skip to content

Commit

Permalink
Fixed a problem in STARsolo with empty Unmapped.out.mate2 file. Issue #…
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdobin committed Mar 22, 2019
1 parent bb207df commit a3c2a09
Show file tree
Hide file tree
Showing 11 changed files with 2,983 additions and 2,975 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* Fixed a problem in STARsolo with empty Unmapped.out.mate2 file. Issue #593.
* Fixed a problem with CR CY UR UQ SAM tags in solo output. Issue #593.
* Fixed problems with STARsolo and 2-pass.

Expand Down
Binary file modified bin/Linux_x86_64/STAR
Binary file not shown.
Binary file modified bin/Linux_x86_64/STARlong
Binary file not shown.
Binary file modified bin/Linux_x86_64_static/STAR
Binary file not shown.
Binary file modified bin/Linux_x86_64_static/STARlong
Binary file not shown.
2 changes: 1 addition & 1 deletion source/ReadAlignChunk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ ReadAlignChunk::ReadAlignChunk(Parameters& Pin, Genome &genomeIn, Transcriptome
};
if (P.outReadsUnmapped=="Fastx" ) {
chunkFstreamOpen(P.outFileTmp + "/Unmapped.out.mate1.thread",iChunk, RA->chunkOutUnmappedReadsStream[0]);
if (P.readNmates==2) chunkFstreamOpen(P.outFileTmp + "/Unmapped.out.mate2.thread",iChunk, RA->chunkOutUnmappedReadsStream[1]);
if (P.readNmatesIn==2) chunkFstreamOpen(P.outFileTmp + "/Unmapped.out.mate2.thread",iChunk, RA->chunkOutUnmappedReadsStream[1]);
};
if (P.outFilterType=="BySJout") {
chunkFstreamOpen(P.outFileTmp + "/FilterBySJoutFiles.mate1.thread",iChunk, RA->chunkOutFilterBySJoutFiles[0]);
Expand Down
2 changes: 1 addition & 1 deletion source/ReadAlignChunk_processChunks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ void ReadAlignChunk::processChunks() {//read-map-write chunks
if (P.runThreadN>1)
pthread_mutex_lock(&g_threadChunks.mutexOutUnmappedFastx);

for (uint ii=0;ii<P.readNmates;ii++) {
for (uint ii=0;ii<P.readNmatesIn;ii++) {
chunkFstreamCat (RA->chunkOutUnmappedReadsStream[ii],P.inOut->outUnmappedReadsStream[ii], false, g_threadChunks.mutexOutUnmappedFastx);
};

Expand Down
6 changes: 6 additions & 0 deletions source/ReadAlign_outputAlignments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ void ReadAlign::outputAlignments() {
chunkOutUnmappedReadsStream[im] << Qual0[im] <<"\n";
};
};
if (P.pSolo.type>0) {//need to output 2nd (barcode) read
chunkOutUnmappedReadsStream[1] << readNameMates[0] <<"\n";
uint32 qualStart = readNameExtra[0].find(' ');
chunkOutUnmappedReadsStream[1] << readNameExtra[0].substr(0,qualStart) <<"\n+\n";
chunkOutUnmappedReadsStream[1] << readNameExtra[0].substr(qualStart+1) <<"\n";
};
};
};

Expand Down
2 changes: 1 addition & 1 deletion source/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define STAR_VERSION "2.7.0e_0320"
#define STAR_VERSION "2.7.0e_0322"
2 changes: 1 addition & 1 deletion source/parametersDefault
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### versions
versionGenome 2.7.0d
string: latest genome index version compatible with this STAR release. Please do not change this value!
string: earliest genome index version compatible with this STAR release. Please do not change this value!

### Parameter Files
parametersFiles -
Expand Down
5,943 changes: 2,972 additions & 2,971 deletions source/parametersDefault.xxd

Large diffs are not rendered by default.

0 comments on commit a3c2a09

Please sign in to comment.