INNER CODE UNIT · Python

ratio

StaPH-B/docker-builds · build-files/cbird-util/2.0/est_coverage.py:53

        ratio = round((int(genome_length) / int(exp_gs)),2)
    except ValueError:
        print("Someting wrong in genome ratio calculation")
    finally:
        with open("GENOME_RATIO", "w") as r:
            r.write(str(ratio))
        
if __name__ == "__main__":
    parser = argparse.ArgumentParser(description='Coverage calculating script for C-BIRD workflow')

    parser.add_argument('total_bases', type=str, help='file containing the total number of bases')
    parser.add_argument('top_taxid', type=int, help='The tax ID of the top hit')
    parser.add_argument('alt_gs', type=str, help='file containing the expected genome size (alternative)')
    parser.add_argument('genome_length', type=int, help='The length of the genome being analyzed')

    args = parser.parse_args()

    main(args)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…