Skip to content

Commit

Permalink
update 1.0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
“chhylp123” committed Aug 24, 2019
1 parent d6218af commit 318c391
Show file tree
Hide file tree
Showing 11 changed files with 6,906 additions and 2,397 deletions.
15 changes: 14 additions & 1 deletion Auxiliary.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extern unsigned char default_ws;
extern unsigned char MERGE_STEP;
extern unsigned short SEQ_LENGTH; // Sequence(read) length

extern char *versionN;
extern char *versionN;


extern unsigned int THREAD_COUNT;
Expand Down Expand Up @@ -71,6 +71,19 @@ extern int unmapped_out;
extern int ambiguous_out;
extern int mapstats;


extern int GapOpenPenalty;
extern int GapExtensionPenalty;
extern int MistMatchPenaltyMax;
extern int MistMatchPenaltyMin;
extern int N_Penalty;
extern int Q_base;

extern char *Mapstats_File;
extern char *Mapstats_File_Path;



double Get_T(void);
void reverseComplement (char *seq, char *rcSeq , int length);
///void reverse_pattern(char* pattern, char* rev_pattern, int length);
Expand Down
27 changes: 11 additions & 16 deletions Bitmapper_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ int main(int argc, char *argv[])
{


fprintf(stderr,"Read qualities are encoded by Phred+%d...\n", Q_base);
fprintf(stderr,"GapOpenPenalty: %d, GapExtensionPenalty: %d, MistMatchPenaltyMax: %d\n",
GapOpenPenalty, GapExtensionPenalty, MistMatchPenaltyMax);
fprintf(stderr,"MistMatchPenaltyMin: %d, N_Penalty: %d\n",
MistMatchPenaltyMin, N_Penalty);


double totalLoadingTime = 0;
Expand Down Expand Up @@ -93,6 +98,8 @@ int main(int argc, char *argv[])
mappingTime = 0;
loadingTime = 0;



fprintf(stderr,"Start load hash table!\n");

Load_Index(thread_e, &chhy_ih_refGenName, &refChromeCont, fileName[1]);
Expand Down Expand Up @@ -127,15 +134,12 @@ int main(int argc, char *argv[])
if (pbat == 0)
{
Map_Single_Seq(0);

///Map_Single_Seq_end_to_end_cover(0);

}
else
{
Map_Single_Seq_pbat(0);
}

}
else
{
Expand Down Expand Up @@ -281,19 +285,10 @@ int main(int argc, char *argv[])

if (mapstats == 1)
{
char mapstatsFileName[NAME_LENGTH];

if (outputFileName[0] == '\0')
{
sprintf(mapstatsFileName, "stdout.mapstats");
}
else
{
sprintf(mapstatsFileName, "%s.mapstats", outputFileName);
}


FILE* mapstats_fp = fopen(mapstatsFileName, "w");
sprintf(Mapstats_File_Path + strlen(Mapstats_File_Path), "%s", Mapstats_File);
fprintf(stderr, "The statistical information will be written to %s ...\n", Mapstats_File_Path);

FILE* mapstats_fp = fopen(Mapstats_File_Path, "w");

if (mapstats_fp != NULL)
{
Expand Down
Loading

0 comments on commit 318c391

Please sign in to comment.