Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tips_and_tricks [2025/03/10 09:37] – 37.26.174.181tips_and_tricks [2026/11/20 13:18] (current) – Split tips: user index here, admin tips at infra:tips_and_tricks threepio
Line 1: Line 1:
-How to delete spaces from file names on Unix systems using Shell+====== Tips & Tricks ======
  
-  for f in *; do mv "$f" `echo $f | tr ' ' '_'`; done+Short, practical tips for using the cluster. Admin and infrastructure tips live on [[infra:tips_and_tricks|Infrastructure Tips and Tricks]].
  
-----+===== Jobs and Slurm =====
  
-How to get your IP addresses on Unix systems+  * [[software:slurm|Slurm guide]] -- partitions, resource requests, job scripts 
 +  * [[scripts:run_job_on_slurm|Run a job on Slurm]] -- a minimal working example 
 +  * Always set ''%%%%--mem%%''; a job without it requests a whole node's memory and will not schedule.
  
-  ifconfig | awk '/inet/'+===== Software =====
  
 +  * [[software:conda|Install your own software with Conda]] -- per-user environments, no root needed
 +  * Do not add Conda to ''~/.bashrc''; it slows down every login. Activate it when you need it.
  
-And on Microsoft Windows+===== Files and storage =====
  
-  ipconfig+  * [[getting_started:new_member#important_directories|Where your files live]] 
 +  * [[databases:start|Reference genomes and shared databases]] 
 +  * Project data is shared under ''/mnt/nas0/proj/<project>/'' or ''/mnt/nas1/proj/<project>/''; ask the project lead before writing there.
  
-If you need to know your public IP address, please visit [[http://ifconfig.bsd.am|ifconfig.bsd.am]]+===== Wiki =====
  
-----+  * [[getting_started:wiki_editing|How to edit this wiki]] 
 +  * [[wiki:contributing|Contributor guide]]
  
-If your internet connection is slow at the office, do the following tests:+===== Suggest a tip =====
  
 +Add it here, or send it to [[mailto:it-support@abi.am|it-support@abi.am]].
  
-  * Copy a large file (more than 100MB) from one of the local servers to you. If the copy speed is low, then there’s an issue with the WiFi. Try reconnecting, it might help.  
-  * If the copy speed is acceptable, do a speed test using Speedtest.net. If the speed is high (more than 250Mbps) then there are no issues connecting to Armenian networks.  
-  * Try doing a speed test using https://librespeed.org/ , make sure you use a Western European server such as Amsterdam or Frankfurt, if the speed is low, then there’s an issue at IIAP.  
- 
- 
----- 
- 
-List Slurm jobs with pretty formatting 
- 
-<code> 
-$ squeue  -o "%.9i %.9P %.24j %.8u %.3t %.16M %.6D %.19R %.4C %.10m" 
-    JOBID PARTITION                     NAME     USER  ST             TIME  NODES    NODELIST(REASON) CPUS MIN_MEMORY 
-     6070    comp0a                     gatk     nate   R      22-23:37:18      1               comp0    4        12G 
-     6071    comp0a                     gatk     nate   R      22-23:37:05      1               comp0    4        12G 
-     6072    comp0a                     gatk     nate   R      22-23:35:49      1               comp0    4        12G 
-     6073    comp0a                     gatk     nate   R      22-23:35:46      1               comp0    4        12G 
-     6074    comp0a                     gatk     nate   R      22-23:35:43      1               comp0    4        12G 
-     6075    comp0a                     gatk     nate   R      22-23:35:40      1               comp0    4        12G 
-     6178    comp0a                computel2    davit   R       9-22:25:52      1               comp0   40        75G 
-     6268    comp0a                  vc_d.sh    smbat   R       1-19:44:22      1               comp0    4        50G 
-     6275    comp0a           qc_fecal_cfdna    mherk   R          2:40:11      1               comp0   20        30G 
-</code>