Skip to content

Commit

Permalink
Fixed library->is_valid flag
Browse files Browse the repository at this point in the history
  • Loading branch information
asylvz committed Sep 22, 2022
1 parent 34e4add commit cb71f15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions processbam.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ void load_bam( parameters *params, configuration *cfg, bam_info* in_bam, char* p
( in_bam->libraries)[i]->fastq1 = NULL;
( in_bam->libraries)[i]->fastq2 = NULL;
( in_bam->libraries)[i]->divet = NULL;
( in_bam->libraries)[i]->is_valid = 0;
( in_bam->libraries)[i]->mappings_discordant = ( discordantMapping **) getMem( (NHASH + 1) * sizeof( discordantMapping *));
for( j = 0; j < NHASH; j++)
( in_bam->libraries)[i]->mappings_discordant[j] = NULL;
Expand Down Expand Up @@ -245,6 +246,7 @@ void load_bam( parameters *params, configuration *cfg, bam_info* in_bam, char* p
fprintf( stderr, "\nLibrary %s\n\tMean: %f\n\tStdev: %f\n\n", ( in_bam->libraries)[i]->libname, ( in_bam->libraries)[i]->frag_avg, ( in_bam->libraries)[i]->frag_std);
fprintf( logFile, "\nLibrary %s\n\tMean: %f\n\tStdev: %f\n\tRead Length: %d\n\n", ( in_bam->libraries)[i]->libname, ( in_bam->libraries)[i]->frag_avg, ( in_bam->libraries)[i]->frag_std, ( in_bam->libraries)[i]->read_length);
set_library_min_max( ( in_bam->libraries)[i]);
is_library_valid(( in_bam->libraries)[i]);
plot_histogram( params, cfg, in_bam->sample_name, in_bam->libraries[i]->libname, second_test_pass[i], second_pass_fragments[i], in_bam->libraries[i]->frag_avg, in_bam->libraries[i]->frag_std);
}

Expand Down

0 comments on commit cb71f15

Please sign in to comment.