General disclaimer This repository was created for use by CDC programs to collaborate on public health related projects in support of the CDC mission. GitHub is not hosted by the CDC, but is a third party website used by CDC and its partners to share information and collaborate on software. CDC use of GitHub does not imply an endorsement of any one particular service, product, or enterprise.
Use of this service is limited only to non-sensitive and publicly available data. Users must not use, share, or store any kind of sensitive data like health status, provision or payment of healthcare, Personally Identifiable Information (PII) and/or Protected Health Information (PHI), etc. under ANY circumstance.
Administrators for this service reserve the right to moderate all information used, shared, or stored with this service at any time. Any user that cannot abide by this disclaimer and Code of Conduct may be subject to action, up to and including revoking access to services.
The material embodied in this software is provided to you "as-is" and without warranty of any kind, express, implied or otherwise, including without limitation, any warranty of fitness for a particular purpose. In no event shall the Centers for Disease Control and Prevention (CDC) or the United States (U.S.) government be liable to you or anyone else for any direct, special, incidental, indirect or consequential damages of any kind, or any damages whatsoever, including without limitation, loss of profit, loss of use, savings or revenue, or the claims of third parties, whether or not CDC or the U.S. government has been advised of the possibility of such loss, however caused and on any theory of liability, arising out of or in connection with the possession, use or performance of this software.
MIRA-Oxide is a RUST package that is utilized by MIRA-NF to perform assembly and annotation of Influenza genomes, SARS-CoV-2 genomes, the SARS-CoV-2 spike-gene and RSV genomes.
MIRA-Oxide has standalone subprocesses within it that perform different tasks. These are run on their own with
mira-oxide <SUBPROCESS> [subprocess arguments]Current subprocesses include:
- Hamming Distance between all samples
- Nucleotide Diffs between all samples
- Find Chemistry, for selecting the correct module and configs for IRMA
- Plotter, for plotting,
- Variants of Interest, for taking DAIS-ribosome outputs and a list of sequences to find mutations that will cause variants
Each subprocess has its own README, found in docs/.
Before starting be sure that you have rust nightly installed and set as default. You will also need to have Cargo installed. If you need more information about how to install those, see here.
If you are using VScode the rust-analyzer extension is very help with formatting and debugging.
Clone the repository.
git clone https://github.com/CDCgov/mira-oxide.gitMove into the folder made by Cargo and create new branch for your subprocess.
cd mira-oxide
git checkout -b add_new_subprocess_nameMira-oxide requires rust-nightly to run the zoe crate.
Install the nightly version of rust.
rustup toolchain install nightlyUsing nightly for mira-oxide
rustup override set nightlytouch src/processes/subprocess_name.rs-
Create a new process under
src/processes -
Add that process to
src/processs/mod.rsby editingmod.rswithpub mod subprocess_name; -
Import the file in
src/main.rsby adding the subprocess to the list:use crate::processes::{[other processes], subprocess_name::*}; -
Add your subprocess to the
enum Commands
Start Working!
- Work on your subprocess in
src/processes/subprocess_name.rs. You can add a newstructwith specific arguments for this process:pub struct ProcessArgs. - You should should have a "main" function called something like
pub fn name_process(args: ProcessArgs). It can call off to helper functions in the same file, or for shared functionality, something insrc/utils - Once you have created the
name_process(args)function, add it to thematchstatement inmain.rs.
Run your program!
To be sure that your package is working within the workspace go the workspace area (path-to-repo-folder/mira-oxide) and run this command:
cargo run -- <SUBPROCESS-NAME> [SUBPROCESS ARGS]Or, if it is compiled, you can find the debug or release binary in the target/ directory, and run it directly via
./target/debug/mira-oxide <SUBPROCESS-NAME> [SUBPROCESS ARGS]Provide usage documentation.
Create a README.md within the docs/ folder. Within that README provide a description of the subprocess, its inputs, its outputs and how to execute it.
This repository constitutes a work of the United States Government and is not subject to domestic copyright protection under 17 USC § 105. This repository is in the public domain within the United States, and copyright and related rights in the work worldwide are waived through the CC0 1.0 Universal public domain dedication. All contributions to this repository will be released under the CC0 dedication. By submitting a pull request you are agreeing to comply with this waiver of copyright interest.
The repository utilizes code licensed under the terms of the Apache Software License and therefore is licensed under ASL v2 or later.
This source code in this repository is free: you can redistribute it and/or modify it under the terms of the Apache Software License version 2, or (at your option) any later version.
This source code in this repository is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Apache Software License for more details.
You should have received a copy of the Apache Software License along with this program. If not, see [http://www.apache.org/licenses/LICENSE-2.0.html]
The source code forked from other open source projects will inherit its license.
This repository contains only non-sensitive, publicly available data and information. All material and community participation is covered by the Disclaimer and Code of Conduct. For more information about CDC's privacy policy, please visit http://www.cdc.gov/other/privacy.html.
Anyone is encouraged to contribute to the repository by forking and submitting a pull request. (If you are new to GitHub, you might start with a basic tutorial.) By contributing to this project, you grant a world-wide, royalty-free, perpetual, irrevocable, non-exclusive, transferable license to all users under the terms of the Apache Software License v2 or later.
All comments, messages, pull requests, and other submissions received through CDC including this GitHub page may be subject to applicable federal law, including but not limited to the Federal Records Act, and may be archived. Learn more at http://www.cdc.gov/other/privacy.html.
This repository is not a source of government records, but is a copy to increase collaboration and collaborative potential. All government records will be published through the CDC web site.
Please refer to CDC's Template Repository for more information about contributing to this repository, public domain notices and disclaimers, and code of conduct.
