Open
Conversation
remove the lib_type option
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
removed the lib_type option
#!/usr/bin/perl -w
use strict;
use File::Basename;
use Data::Dumper;
use Getopt::Long qw(:config no_ignore_case no_auto_abbrev pass_through);
my (@file_query, $database_path, $user_database_path, $annotation_path,
$user_annotation_path, $file_names, $root_names, @file_query2, $file_type, $n_cores);
GetOptions( "file_query=s" => @file_query,
"file_query2=s" => @file_query2,
"database=s" => $database_path,
"user_database=s" => $user_database_path,
"annotation=s" => $annotation_path,
"user_annotation=s" => $user_annotation_path,
"file_names=s" => $file_names,
"root_names=s" => $root_names,
"file_type=s" => $file_type,
"n_cores=s" => $n_cores,
);
sanity check for input data
if (@file_query2) {
@file_query && @file_query2 || die "Error: At least one file for each paired-end is required\n";
@file_query == @file_query2 || die "Error: Unequal number of files for paired ends\n";
}
if (!($user_database_path || $database_path)) {
die "No reference genome was supplied\n";
}
if (@file_query < 1) {
die "No FASTQ files were supplied\n";
}
Sanity check for input ref. genome
unless ($database_path || $user_database_path) {
die "No reference genome was selected"
}
Allow over-ride of system-level database path with user
if ($user_database_path) {
$database_path = $user_database_path;
unless (
grep \\> $database_path) {die "Error: $database_path the user supplied file is not a FASTA file";
}
my $name = basename($database_path, qw/.fa .fas .fasta .fna/);
print STDERR "hisat2-indexing $name\n";
my $hisat2b = "hisat2-build";
system $hisat2b . " $database_path $name";
for my $query_file (@file_query) {
# Grab any flags or options we don't recognize and pass them as plain text
# Need to filter out options that are handled by the GetOptions call
my @args_to_reject = qw(-xxxx);
}
}
system "rm -rf *.ht2";
sub report {
print STDERR "$_[0]\n";
}