Skip to content

Instantly share code, notes, and snippets.

View choishingwan's full-sized avatar

Shing Wan Choi choishingwan

  • Mount Sinai
  • New York
View GitHub Profile
bcbio-nextgen,0.7.3
htseq,0.5.4p1
bamtools,2.2.3
bedtools,v2.17.0
bowtie2,2.0.0-beta5
bwa,0.7.5a-r405
cufflinks,v2.0.0
cutadapt,
fastqc,v0.10.1
freebayes,v0.9.9.2-14-g8e44a20-dirty
@choishingwan
choishingwan / handle_meta.nf
Created December 2, 2021 15:30
Nextflow meta helper
import java.util.ArrayList;
def reformat_meta(input, index, column){
def arrayItems = []
if(input instanceof nextflow.util.ArrayTuple){
arrayItems = new java.util.ArrayList(input)
}else{
arrayItems = input.clone()
}
def meta = arrayItems.remove(index)