UeenHuynh / MGMA_2024

25 stars 15 forks source link

!bash Miniforge3-Linux-x86_64.sh #44

Open phgiang11 opened 6 days ago

phgiang11 commented 6 days ago

dạ, mình thực thi lệnh trên colab, lệnh này mình chờ gần 10 phút hơn là bình thường không ạ, nhờ anh chị hướng dẫn giúp như colab mình đang làm. Xin cảm ơn! https://colab.research.google.com/drive/1miyOpE4Ns0KfX7czpYyn6W1wKZacjbKe#scrollTo=MmYGOZ6DD-Hg

lucianhu commented 6 days ago

Chào bạn, trongColab, việc cài conda nó khác với chạy trên máy local, bạn thử cái code này nhé

# Install condacolab package to enable conda usage within Google Colab
# Condacolab facilitates the installation and management of conda environments in Colab

# Install the condacolab package
!pip install condacolab

# Import the condacolab module to use its functionalities
import condacolab

# Install conda and initialize it within the Colab environment
# This step sets up the conda environment for subsequent package management
condacolab.install()
# Create a new conda environment and install tools
%%bash
# Create a new environment called 'longread'
mamba create -y -n longread python=3.8

# Activate the environment
source activate longread

# Install necessary tools using mamba
mamba install -y -c bioconda minimap2 samtools kraken2 bracken sra-tools.......

# Confirm installations
echo "Setup complete."

Tuy nhiên, các bước từ xử lý file tới binning, thì được khuyến khích chạy trên máy local, vì tốc độ xử lý và thời gian chạy sẽ mất 1 ngày hơn.

Thân,

phgiang11 commented 5 days ago

Cảm ơn Như,hôm qua mình cũng thử trên máy local ,bước này qua cũng nhanh nhưng bước mamba long_read mình bị đứng máy luôn vì quá tải phải reset lai toàn bộ ổ cứng, có thể bạn chia sẻ giúp mình hướng dẫn tự cài một máy ảo có ubuntu chạy được terminal trong đó với,mình xem video bài khóa trước có đề cập tới

Cảm ơn bạn nhiều

Hà Giang

Vào 14:52 T.3, 15 Th10, 2024 Quynh Nhu Nguyen @.***> đã viết:

Chào bạn, trong Colab, việc cài conda nó khác với chạy trên máy local, bạn thử cái code này nhé

Install condacolab package to enable conda usage within Google Colab

Condacolab facilitates the installation and management of conda environments in Colab

Install the condacolab package

!pip install condacolab

Import the condacolab module to use its functionalities

import condacolab

Install conda and initialize it within the Colab environment

This step sets up the conda environment for subsequent package management

condacolab.install()

Create a new conda environment and install tools

%%bash

Create a new environment called 'longread'

mamba create -y -n longread python=3.8

Activate the environment

source activate longread

Install necessary tools using mamba

mamba install -y -c bioconda minimap2 samtools kraken2 bracken sra-tools.......

Confirm installations

echo "Setup complete."

Tuy nhiên, các bước từ xử lý file tới binning, thì được khuyến khích chạy trên máy local, vì tốc độ xử lý và thời gian chạy sẽ mất 1 ngày hơn.

Thân,

— Reply to this email directly, view it on GitHub https://github.com/UeenHuynh/MGMA_2024/issues/44#issuecomment-2413149782, or unsubscribe https://github.com/notifications/unsubscribe-auth/BL5IK4R4O5RF7FXKNBVHWBLZ3TCVBAVCNFSM6AAAAABP53TD5CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJTGE2DSNZYGI . You are receiving this because you authored the thread.Message ID: @.***>

lucianhu commented 3 days ago

Bên mình không khuyến khích cài máy ảo chạy được ubuntu vì nó sẽ rất dễ xung đột với các tools. Bạn có thể tham khảo các website, youtube khác hoặc hỏi AI họ sẽ hướng dẫn kỹ càng hơn nếu bạn có nhu cầu tạo máy ảo,