<reponame>segrelab/MiCoNE
#!/usr/bin/env python3

from qiime2 import Artifact


def main(input_type, input_path, input_format, output_path):
    imported_artifact = Artifact.import_data(
        input_type, input_path, view_type=input_format
    )
    imported_artifact.save(output_path)


if __name__ == "__main__":
    INPUT_TYPE = "SampleData[PairedEndSequencesWithQuality]"
    INPUT_PATH = "${manifest_file}"
    INPUT_FORMAT = "PairedEndFastqManifestPhred33V2"
    OUTPUT_PATH = "${meta.id}_sequences.qza"
    main(INPUT_TYPE, INPUT_PATH, INPUT_FORMAT, OUTPUT_PATH)

#!/usr/bin/env python3

from qiime2 import Artifact


def main(input_type, input_path, input_format, output_path):
    imported_artifact = Artifact.import_data(
        input_type, input_path, view_type=input_format
    )
    imported_artifact.save(output_path)


if __name__ == "__main__":
    INPUT_TYPE = "SampleData[PairedEndSequencesWithQuality]"
    INPUT_PATH = "${manifest_file}"
    INPUT_FORMAT = "PairedEndFastqManifestPhred33V2"
    OUTPUT_PATH = "${meta.id}_sequences.qza"
    main(INPUT_TYPE, INPUT_PATH, INPUT_FORMAT, OUTPUT_PATH)
#!/usr/bin/env python3