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

make temp dir more robust #349

Open
wants to merge 4 commits into
base: hisat-3n
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion hisat-3n
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ my @mate1s = ();
my @mate2s = ();
my @to_delete = ();
my @to_kills = ();
my $temp_dir = "/tmp";
my $temp_dir = File::Spec->tmpdir();
my $bam_out = 0;
my $ref_str = undef;
my $no_pipes = 0;
Expand Down
2 changes: 1 addition & 1 deletion position_3n_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class Positions{
* this is important when there is space in chromosome name. the SAM information only contain the first word.
*/
string getChrName(string& inputLine) {
size_t endPosition = inputLine.find(' ', 0);
size_t endPosition = inputLine.find_first_of(" \t");
string name = inputLine.substr(1, endPosition-1);

if(removedChrName) {
Expand Down