Skip to content

Commit

Permalink
Merge branch 'avoid_genome_collisions' of https://github.com/jeffhuss…
Browse files Browse the repository at this point in the history
…mann/STAR into jeffhussmann-avoid_genome_collisions
  • Loading branch information
alexdobin committed Sep 16, 2022
2 parents 5f9ad24 + 4d762b9 commit 5c3681a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions source/Genome.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@
#include <unistd.h>
#include <sys/stat.h>

//arbitrary number for ftok function
#define SHM_projectID 23

Genome::Genome (Parameters &P, ParametersGenome &pGe): shmStart(NULL), P(P), pGe(pGe), sharedMemory(NULL)
{
shmKey=ftok(pGe.gDir.c_str(),SHM_projectID);
struct stat stbuf;
stat(pGe.gDir.c_str(), &stbuf);
shmKey=stbuf.st_ino;
genomeOut.g=this;//will change if genomeOut is different from genomeMain
genomeOut.convYes=false;
sjdbOverhang = pGe.sjdbOverhang; //will be re-defined later if another value was used for the generated genome
Expand Down

0 comments on commit 5c3681a

Please sign in to comment.