Skip to content

Snakemake use all samples as one input with porechop

I’m trying to use porechop on several data with a Snakemake workflow. In my Snakefile, there are three rules, a fastqc rule and a porechop rule, in addition to the all rule. The fastqc rule works very well, I have all three out for my three fastq. But for porechop, instead of running the command three t…

python: get percentage from collection counter

I have two lists like the following: I have tried to get the counts of elements in the first list based on a condition: the output is: instead of counts, I would like to get their percentage like the following I have tried adding Counter(100/([a for a,b in zip(l1,l2) if b==’f’])), but I get an err…

Align image center pysimpleGui

I use image (and button) as so: How do I align the myImg to center? I tried google can’t find anything on how to do it. I read somebody suggested justification=’center’ but I don’t know where to put that. I tried [myImg, justification=’center’] didn’t work just crash …

Concatenate strings (‘not float’)

Hello I have 3 different dataframes whose values I want to add. I have the following dataframes below and the code I used to add the values all together but I encountered an error. I would appreciate any help, thank you very much. I used this code to add the values in the dataframes: However I got this Error:…

Loop through folder and subfolders and merge pdf

I tried to create a script to loop through parent folder and subfolders and merge all of the pdfs into one. Below if the code I wrote so far, but I don’t know how to combine them into one script. Reference: Merge PDF files The first function is to loop through all of the subfolders under parent folder a…