# HG changeset patch # User petr-novak # Date 1708952360 0 # Node ID 639c0edb7e64860dfe5a76bab99a9d90dbba4be1 # Parent 696e702ebf74cd8a92215a4b794c0308d77c9188 planemo upload for repository https://github.com/kavonrtep/galaxy_packages commit 248ffeb6792d5807820b664eae3e88306f3f395e-dirty diff -r 696e702ebf74 -r 639c0edb7e64 extract_GFF_Features.xml --- a/extract_GFF_Features.xml Mon May 09 08:26:30 2022 +0000 +++ b/extract_GFF_Features.xml Mon Feb 26 12:59:20 2024 +0000 @@ -1,6 +1,7 @@ from GFF data - extract_GFF_Features.py $input1 $out_file1 ${column_choice.col} ${column_choice.feature} + + python '$__tool_directory__'/extract_GFF_Features.py $input1 $out_file1 ${column_choice.col} ${column_choice.feature} diff -r 696e702ebf74 -r 639c0edb7e64 gff2bed.xml --- a/gff2bed.xml Mon May 09 08:26:30 2022 +0000 +++ b/gff2bed.xml Mon Feb 26 12:59:20 2024 +0000 @@ -1,9 +1,11 @@ - + converter operation_3434 - gff_to_bed_converter.py $input $out_file1 + + python '$__tool_directory__'/gff_to_bed_converter.py $input $out_file1 + diff -r 696e702ebf74 -r 639c0edb7e64 gff2tabular.R --- a/gff2tabular.R Mon May 09 08:26:30 2022 +0000 +++ b/gff2tabular.R Mon Feb 26 12:59:20 2024 +0000 @@ -2,5 +2,12 @@ library(rtracklayer) gff <- import(commandArgs(T)[1], format='GFF') tabular <- as.data.frame(gff) +head(tabular) +# some columns are lists, we need to convert them to vectors before writing to file +for (i in 1:ncol(tabular)){ + if (is.list(tabular[[i]])){ + tabular[[i]] <- sapply(tabular[[i]], function(x) paste(x, collapse = ";")) + } +} write.table(tabular, file = commandArgs(T)[2], quote=FALSE, sep="\t", row.names=FALSE)