Open bioarpit1 opened 6 months ago
Hi Arpitm,
Apologies for my delay. I've added setup.py to update the DeconPeaker installation strategy. Please give it a try. Thanks for your feedback. If you encounter any other problems, please don't hesitate to contact me.
git clone git@github.com:lihuamei/DeconPeaker.git cd DeconPeaker && pip install . && cd ..
hi
I am trying to use this tool but installation is real hurdler can you please provide the yaml file i tried with all the dependencies but getting this error import-im6.q16: unable to open X server
' @ error/import.c/ImportImageCommand/346. import-im6.q16: unable to open X server
' @ error/import.c/ImportImageCommand/346. ./deconPeaker2.py: line 5: os.environ[R_HOME]: command not found ./deconPeaker2.py: line 6: os.environ[PATH]: command not found import-im6.q16: unable to open X server' @ error/import.c/ImportImageCommand/346. ./deconPeaker2.py: line 24: from: command not found ./deconPeaker2.py: line 29: from: command not found ./deconPeaker2.py: line 30: from: command not found ./deconPeaker2.py: line 31: from: command not found ./deconPeaker2.py: line 32: from: command not found ./deconPeaker2.py: line 37: syntax error near unexpected token
(' ./deconPeaker2.py: line 37: `LOGS = log_infos() # logging informative'Here is the deconpeaker2.py with R path as original deconpeaker.py was not able to access R without explicit R path
import os import sys
Set R environment variables
os.environ['R_HOME'] = '/nfs/amishra/mambaforge/envs/deconpeaker' os.environ['PATH'] = '/nfs/amishra/mambaforge/envs/deconpeaker/bin:' + os.environ['PATH']
Continue with the rest of the script
...
!/usr/bin/env python
title : deconPeaker.py
description : Identification and deconvolution of cell types based on chromatin accessibility.
author : Huamei Li
date : 29/05/2018
type : main script
version : 3.8
-----------------------------------------------------
load python modules
import numexpr from time import time
-----------------------------------------------------
load own python modules
from modules.deconv_mixed import from modules.simulate import from modules.peaks import * from modules.parse_opts import parse_opts
-----------------------------------------------------
global setting
LOGS = log_infos() # logging informative
numexpr.set_num_threads(numexpr.detect_number_of_cores())
-----------------------------------------------------
def preprocess(): ''' Create chromatin accessibility profile for pure samples, this step is the basis for subsequent specific cell type identification and mixture deconvolution. :return: 0
def findctsps(): ''' find cell type specific peaks for pure samples :return: 0
def deconvolution(): ''' Based on pure cell type information, a deconvolution strategy was used to calculate the proportion of possible cell types in the mixed sample.
def simulate(): ''' simulate mixture cell sampels by sampling reads of pure cells
def run(): ''' deconPeaker main funcion and contains four sections, pureprofile, identifycells, deconvolution and simulation, respectivly :return: stat [int]
if name == 'main': sys.exit(run())
original deconpeaker.py is giving this error
(deconpeaker) Singularity> ./deconPeaker.py Unable to determine R library path: [Errno 2] No such file or directory: '/opt/R/4.2.3/lib/R/bin/Rscript' cannot find system Renviron Fatal error: unable to open the base package