6 Computing Resources
Shen Lab uses several levels of computing resources for research: local workstations, NTU high-performance computing resources, and national-scale computing resources such as Singapore NSCC. The right resource depends on the size of the data, the software needed, the expected runtime, and whether the work requires interactive use or batch jobs.
This chapter gives a practical overview. Specific server names, account policies, queues, storage paths, and access procedures may change, so always follow the latest lab, NTU, or NSCC instructions.
6.1 Choosing A Resource
Use the smallest suitable resource for the task.
General guidance:
- use your laptop for writing, lightweight analysis, coding, and small test runs;
- use a lab workstation for interactive analysis, visualization, GPU work, or medium-sized jobs;
- use NTU HPC for larger jobs, repeated batch analyses, and workloads that need more CPU, memory, or storage;
- use Singapore NSCC for national-scale or collaboration-scale workloads that exceed lab or NTU resources.
Before running a large job, test the workflow on a small subset of data.
6.2 Lab Workstations
Lab workstations are shared computing machines managed by the lab. They may be used for data analysis, software development, visualization, machine learning, or instrument-related workflows.
6.2.1 Access
Before using a workstation, confirm:
- whether you are allowed to use the machine;
- login method and account information;
- whether remote access is enabled;
- storage location for your project;
- whether GPU, memory, or local disk use is shared with others;
- backup expectations.
Do not create accounts, install system software, change network settings, or modify shared configuration without permission.
6.2.2 Good Practice
When using a lab workstation:
- keep project files in the agreed folder;
- avoid storing important files only on the desktop or downloads folder;
- do not fill local disks with temporary files;
- clean up intermediate files after large analyses;
- document software versions and commands;
- avoid interrupting other users’ jobs;
- ask before rebooting a shared machine.
If you need long-running jobs, discuss with the workstation owner or project team first.
6.3 NTU HPC
NTU HPC resources are suitable for larger computational jobs that require more CPU, memory, storage, or batch scheduling than a local workstation can provide.
Typical use cases:
- large-scale omics data processing;
- parameter sweeps;
- repeated statistical analyses;
- workflow pipelines;
- jobs requiring many CPU cores or large memory;
- analyses that should run without depending on a personal laptop.
6.3.1 Access And Accounts
Access requirements may depend on NTU status, PI approval, project allocation, and current HPC policy. New members should confirm:
- whether they are eligible for an NTU HPC account;
- which project or group allocation should be used;
- login method and authentication;
- storage locations and quotas;
- available software modules or containers;
- queue or partition rules;
- job runtime and resource limits.
If you cannot log in or do not know which allocation to use, ask your mentor or the PI.
6.3.2 Batch Jobs
HPC systems usually run jobs through a scheduler. Do not run heavy jobs directly on login nodes.
Good practice:
- test commands on a small input first;
- request only the resources you need;
- write clear job scripts;
- save logs for troubleshooting;
- monitor failed jobs;
- clean temporary files;
- document the exact command and environment used.
If a job fails, collect the job script, job ID, log file, and error message before asking for help.
6.4 Singapore NSCC
Singapore NSCC provides national high-performance computing resources. It may be useful for very large analyses, collaborative projects, GPU workloads, or workflows that exceed lab and NTU capacity.
Potential use cases:
- large-scale multi-omics processing;
- compute-intensive simulations;
- machine-learning or deep-learning workloads;
- large batch pipelines;
- collaboration projects requiring national-scale computing.
6.4.1 Before Applying Or Using NSCC
Before using NSCC, discuss with the PI:
- why lab workstation or NTU HPC is not sufficient;
- expected computing resources;
- storage requirements;
- software environment;
- project timeline;
- data sensitivity and transfer plan;
- collaborators who need access.
NSCC access and project allocation should be handled carefully because resource use, data movement, and account management may involve formal procedures.
6.5 Data Storage
Computing resources and data storage should be planned together.
Important questions:
- where is the raw data stored;
- where will intermediate files be written;
- where will final results be saved;
- how large are the files;
- who needs access;
- what needs backup;
- what should be deleted after analysis.
Do not move sensitive or unpublished data to an external system without PI approval.
6.6 Software Environments
For reproducible computing, record the software environment used for each project.
Useful options include:
- R package records such as
renv; - Python
environment.ymlorrequirements.txt; - Conda or Mamba environments;
- containers when appropriate;
- workflow-management tools for larger pipelines.
When using shared resources, avoid changing global software environments. Use project-specific environments whenever possible.
6.7 Asking For Help
When asking for help with computing resources, include:
- which resource you are using;
- your username or account type, if appropriate;
- the project folder or working directory;
- the command or job script;
- the job ID, if using HPC;
- the exact error message;
- expected runtime, memory, CPU, or GPU needs;
- what you already tried.
Clear information makes it much easier for lab members, IT support, or HPC support to help.
Shen Lab 使用不同层级的计算资源,包括实验室 workstation、NTU HPC,以及 Singapore NSCC 等国家级计算资源。选择哪类资源取决于数据大小、软件需求、运行时间,以及任务是需要交互式操作还是批处理。
本章提供实用概览。具体服务器名称、账号政策、queue、存储路径和申请流程可能变化,请以实验室、NTU 或 NSCC 最新说明为准。
原则上使用能够完成任务的最小合适资源。轻量写作、代码和小规模测试用个人电脑;交互式分析、中等规模任务、可视化或 GPU 工作可用实验室 workstation;更大规模、重复 batch analyses 或需要更多 CPU、内存、存储的任务使用 NTU HPC;超出实验室和 NTU 资源的大型项目可考虑 Singapore NSCC。
大型任务正式运行前,应先用小数据子集测试流程。
实验室 workstation 是共享计算机器,可用于数据分析、软件开发、可视化、机器学习或仪器相关工作流。
使用前请确认是否有权限、登录方式、账号信息、是否支持远程访问、项目文件应放在哪里、GPU/内存/本地硬盘是否与他人共享,以及是否有备份要求。不要未经允许创建账号、安装系统软件、修改网络设置或共享配置。
使用 workstation 时,应把项目文件放在约定文件夹,不要只存在桌面或 Downloads,不要用临时文件填满本地硬盘,长时间任务前和负责人或项目组沟通,避免中断他人任务。大型分析后应清理中间文件,并记录软件版本和命令。
NTU HPC 适合需要更多 CPU、内存、存储或 batch scheduling 的大型计算任务。
典型场景包括大规模组学数据处理、参数扫描、重复统计分析、workflow pipelines、多核或大内存任务,以及不应依赖个人电脑运行的分析。
访问资格可能取决于 NTU 身份、PI 批准、项目 allocation 和当前 HPC 政策。新成员应确认是否符合申请条件、使用哪个 project/group allocation、登录和认证方式、存储路径和 quota、可用 software modules 或 containers、queue/partition 规则,以及 job runtime 和资源限制。
HPC 通常通过 scheduler 运行任务。不要在 login node 上直接运行重任务。应先用小输入测试命令,只申请需要的资源,写清楚 job script,保存 logs,检查失败任务,清理临时文件,并记录实际命令和环境。求助时请提供 job script、job ID、log file 和错误信息。
Singapore NSCC 提供国家级高性能计算资源,适合非常大的分析、合作项目、GPU 工作负载,或超出实验室与 NTU 资源能力的 workflow。
可能场景包括大规模 multi-omics processing、计算密集型 simulation、machine learning/deep learning、大型 batch pipelines,以及需要国家级计算资源的合作项目。
使用 NSCC 前请先和 PI 讨论:为什么 lab workstation 或 NTU HPC 不够、预计需要多少资源、存储需求、软件环境、项目时间线、数据敏感性和传输计划,以及哪些合作者需要访问。NSCC 涉及正式资源、数据迁移和账号管理,应谨慎处理。
计算资源和数据存储需要一起规划。开始前应明确 raw data 在哪里、中间文件写到哪里、最终结果保存在哪里、文件多大、谁需要访问、哪些需要备份、哪些分析结束后可以删除。未经 PI 批准,不要把敏感或未发表数据移动到外部系统。
为了可复现,应记录每个项目使用的软件环境。可选方案包括 R 的 renv、Python 的 environment.yml 或 requirements.txt、Conda/Mamba environments、containers,以及大型 pipeline 的 workflow management tools。共享资源上不要随意改变 global software environment,尽量使用项目独立环境。
求助时请提供使用的计算资源、用户名或账号类型、项目目录、命令或 job script、HPC job ID、完整错误信息、预计 runtime、memory、CPU 或 GPU 需求,以及已经尝试过的方法。信息越清楚,实验室成员、IT 或 HPC support 越容易帮助你。