dc719925f9202a1248d2510aa7aa7e3b648f82cc,bin/basenji_scent.py,,main,#,26

Before Change


        // open wig
        wig_in = pyBigWig.open(wig_file)

        for chrom in chrom_samples:
            for pos in chrom_samples[chrom]:
                try:
                    pos_val = wig_in.values(chrom, pos, pos+1)[0]
                except:
                    print(chrom,pos)
                    exit(1)
                targets_t[-1].append(pos_val)

    // convert and transpose
    targets = np.array(targets_t).T

    // shuffle
    np.random.shuffle(targets)

After Change


    parser = OptionParser(usage)
    parser.add_option("-g", dest="gaps_file", help="Genome assebmly gaps BED [Default: %default]")
    parser.add_option("-m", dest="params_file", help="Model parameters")
    parser.add_option("-p", dest="processes", default=1, type="int", help="Number parallel processes to load data [Default: %default]")
    parser.add_option("-s", dest="sample", type="int", default=1000, help="Genomic positions to sample for training data [Default: %default]")
    parser.add_option("-v", dest="valid_pct", type="float", default=0.1, help="Proportion of the data for validation [Default: %default]")
    (options,args) = parser.parse_args()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: calico/basenji
Commit Name: dc719925f9202a1248d2510aa7aa7e3b648f82cc
Time: 2016-07-14
Author: davidkelley44@gmail.com
File Name: bin/basenji_scent.py
Class Name:
Method Name: main


Project Name: calico/basenji
Commit Name: 1d97e90cddea4ca85cf6bc37cf46069fa3b52bd2
Time: 2019-08-23
Author: drk@calicolabs.com
File Name: bin/basenji_data_hic_read_v2.py
Class Name:
Method Name: main


Project Name: calico/basenji
Commit Name: 9d486f3a3abd93b1008228d41f38ce45157481bc
Time: 2017-02-13
Author: drk@calicolabs.com
File Name: bin/basenji_sed_multi.py
Class Name:
Method Name: main