Skip to content
Snippets Groups Projects
Commit ab4bdff4 authored by Blaise Li's avatar Blaise Li
Browse files

Trying to fix featureCounts wrapper.

parent e219b7be
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,9 @@ ...@@ -13,7 +13,9 @@
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>. # along with this program. If not, see <https://www.gnu.org/licenses/>.
from snakemake.shell import shell from snakemake.shell import shell
from libworkflows import run_with_modules from libworkflows import run_with_modules, SHELL_FUNCTIONS
shell.prefix(SHELL_FUNCTIONS)
load_modules = snakemake.config.get("load_modules", False) load_modules = snakemake.config.get("load_modules", False)
if load_modules: if load_modules:
...@@ -30,9 +32,7 @@ if not hasattr(snakemake.params, "other_opts"): ...@@ -30,9 +32,7 @@ if not hasattr(snakemake.params, "other_opts"):
shell_commands = """ shell_commands = """
tmpdir=$(mktemp --tmpdir -d {snakemake.params.tmpdir_prefix}) tmpdir=$(mktemp --tmpdir -d {snakemake.params.tmpdir_prefix})
cmd="niceload --noswap featureCounts \\ cmd="niceload --noswap featureCounts {snakemake.params.min_mapq} {snakemake.params.other_opts} \\
{snakemake.params.min_mapq} \\
{snakemake.params.other_opts} \\
-a {snakemake.params.annot} -o {snakemake.output.counts} \\ -a {snakemake.params.annot} -o {snakemake.output.counts} \\
-t {snakemake.wildcards.feature_type} -g {snakemake.params.gene_id_name} \\ -t {snakemake.wildcards.feature_type} -g {snakemake.params.gene_id_name} \\
-O -s {snakemake.params.stranded} {snakemake.params.overlap} \\ -O -s {snakemake.params.stranded} {snakemake.params.overlap} \\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment