Get ID for inputs

get_inputs_id(inputs)

Arguments

inputs

Parsed inputs

Value

Vector of input IDs

Examples

# inputs represented by a dictionary
system.file("cwl/sbg/workflow/rnaseq-salmon.json", package = "tidycwl") %>%
  read_cwl_json() %>%
  parse_inputs() %>%
  get_inputs_id()
#>  [1] "transcriptome_fasta_or_salmon_index_archive"
#>  [2] "reads"                                      
#>  [3] "gtf"                                        
#>  [4] "max_number_of_parallel_jobs"                
#>  [5] "kmer_length"                                
#>  [6] "gencode"                                    
#>  [7] "keep_duplicates"                            
#>  [8] "write_unmapped_names"                       
#>  [9] "write_mappings"                             
#> [10] "vb_prior"                                   
#> [11] "use_vbopt"                                  
#> [12] "thinning_factor"                            
#> [13] "strict_intersect"                           
#> [14] "seq_bias"                                   
#> [15] "reduce_GC_memory"                           
#> [16] "range_factorization_bins"                   
#> [17] "quasi_coverage"                             
#> [18] "pos_bias"                                   
#> [19] "per_transcript_prior"                       
#> [20] "num_pre_aux_model_samples"                  
#> [21] "num_gibbs_samples"                          
#> [22] "num_bootstraps"                             
#> [23] "num_bias_samples"                           
#> [24] "num_aux_model_samples"                      
#> [25] "no_length_correction"                       
#> [26] "no_fragment_length_distribution"            
#> [27] "no_effective_length_correction"             
#> [28] "no_bias_length_threshold"                   
#> [29] "min_assigned_frags"                         
#> [30] "meta"                                       
#> [31] "max_read_occ"                               
#> [32] "max_occ"                                    
#> [33] "init_uniform"                               
#> [34] "incompatible_prior"                         
#> [35] "gc_size_samp"                               
#> [36] "gc_bias"                                    
#> [37] "forgetting_factor"                          
#> [38] "fld_sd"                                     
#> [39] "fld_mean"                                   
#> [40] "fld_max"                                    
#> [41] "faster_mapping"                             
#> [42] "dump_eq_weights"                            
#> [43] "dump_eq"                                    
#> [44] "discard_orphans_quasi"                      
#> [45] "consistent_hits"                            
#> [46] "bias_speed_samp"                            
#> [47] "alternative_init_mode"                      
#> [48] "allow_orphans_fmd"                          

# inputs represented by a list
system.file("cwl/sbg/workflow/rnaseq-salmon.cwl", package = "tidycwl") %>%
  read_cwl_yaml() %>%
  parse_inputs() %>%
  get_inputs_id()
#>  [1] "transcriptome_fasta_or_salmon_index_archive"
#>  [2] "reads"                                      
#>  [3] "gtf"                                        
#>  [4] "max_number_of_parallel_jobs"                
#>  [5] "kmer_length"                                
#>  [6] "gencode"                                    
#>  [7] "keep_duplicates"                            
#>  [8] "write_unmapped_names"                       
#>  [9] "write_mappings"                             
#> [10] "vb_prior"                                   
#> [11] "use_vbopt"                                  
#> [12] "thinning_factor"                            
#> [13] "strict_intersect"                           
#> [14] "seq_bias"                                   
#> [15] "reduce_GC_memory"                           
#> [16] "range_factorization_bins"                   
#> [17] "quasi_coverage"                             
#> [18] "pos_bias"                                   
#> [19] "per_transcript_prior"                       
#> [20] "num_pre_aux_model_samples"                  
#> [21] "num_gibbs_samples"                          
#> [22] "num_bootstraps"                             
#> [23] "num_bias_samples"                           
#> [24] "num_aux_model_samples"                      
#> [25] "no_length_correction"                       
#> [26] "no_fragment_length_distribution"            
#> [27] "no_effective_length_correction"             
#> [28] "no_bias_length_threshold"                   
#> [29] "min_assigned_frags"                         
#> [30] "meta"                                       
#> [31] "max_read_occ"                               
#> [32] "max_occ"                                    
#> [33] "init_uniform"                               
#> [34] "incompatible_prior"                         
#> [35] "gc_size_samp"                               
#> [36] "gc_bias"                                    
#> [37] "forgetting_factor"                          
#> [38] "fld_sd"                                     
#> [39] "fld_mean"                                   
#> [40] "fld_max"                                    
#> [41] "faster_mapping"                             
#> [42] "dump_eq_weights"                            
#> [43] "dump_eq"                                    
#> [44] "discard_orphans_quasi"                      
#> [45] "consistent_hits"                            
#> [46] "bias_speed_samp"                            
#> [47] "alternative_init_mode"                      
#> [48] "allow_orphans_fmd"