Skip to content

Commit

Permalink
2024/10/13-18:29:41 (Linux cray unknown)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbenner committed Oct 13, 2024
1 parent 4274857 commit 2600654
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bam_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package gonetics

/* -------------------------------------------------------------------------- */

import "fmt"
//import "fmt"
import "testing"

/* -------------------------------------------------------------------------- */
Expand Down
2 changes: 1 addition & 1 deletion tools/bamToBigWig/bamToBigWig.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ func main() {
}

//////////////////////////////////////////////////////////////////////////////
result, fraglenTreatmentEstimate, fraglenControlEstimate, err := BamCoverage(filenameTrack, filenamesTreatment, filenamesControl, fraglenTreatment, fraglenControl, optionsList...)
result, fraglenTreatmentEstimate, fraglenControlEstimate, err := BamCoverage(filenamesTreatment, filenamesControl, fraglenTreatment, fraglenControl, optionsList...)

// save fraglen estimates
//////////////////////////////////////////////////////////////////////////////
Expand Down
6 changes: 3 additions & 3 deletions track_coverage.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ func estimateFraglen(config BamCoverageConfig, filename string, genome Genome) f

/* -------------------------------------------------------------------------- */

func bamCoverage(config BamCoverageConfig, filenameTrack string, filenamesTreatment, filenamesControl []string, fraglenTreatment, fraglenControl []int, genome Genome) (SimpleTrack, error) {
func bamCoverage(config BamCoverageConfig, filenamesTreatment, filenamesControl []string, fraglenTreatment, fraglenControl []int, genome Genome) (SimpleTrack, error) {

// treatment data
track1 := AllocSimpleTrack("treatment", genome, config.BinSize)
Expand Down Expand Up @@ -553,7 +553,7 @@ func bamCoverage(config BamCoverageConfig, filenameTrack string, filenamesTreatm

/* -------------------------------------------------------------------------- */

func BamCoverage(filenameTrack string, filenamesTreatment, filenamesControl []string, fraglenTreatment, fraglenControl []int, options ...interface{}) (SimpleTrack, []fraglenEstimate, []fraglenEstimate, error) {
func BamCoverage(filenamesTreatment, filenamesControl []string, fraglenTreatment, fraglenControl []int, options ...interface{}) (SimpleTrack, []fraglenEstimate, []fraglenEstimate, error) {

config := BamCoverageDefaultConfig()

Expand Down Expand Up @@ -692,7 +692,7 @@ func BamCoverage(filenameTrack string, filenamesTreatment, filenamesControl []st
}
}
//////////////////////////////////////////////////////////////////////////////
if result, err := bamCoverage(config, filenameTrack, filenamesTreatment, filenamesControl, fraglenTreatment, fraglenControl, genome); err != nil {
if result, err := bamCoverage(config, filenamesTreatment, filenamesControl, fraglenTreatment, fraglenControl, genome); err != nil {
return SimpleTrack{}, treatmentFraglenEstimates, controlFraglenEstimates, err
} else {
return result, treatmentFraglenEstimates, controlFraglenEstimates, err
Expand Down

0 comments on commit 2600654

Please sign in to comment.