18 Aug 2023
Share
tweet

This blog is written for junior PhD students to pass along the fantastic mentorship I received from my advisor and mentors during my PhD study at the University of Michigan. I’ll share tips and strategies that smoothed my PhD path, hoping they’ll illuminate yours.

Table of Contents

Coding

#!/bin/bash
#SBATCH --job-name=Yourjob  # give your job a name
#SBATCH --array=1-100%50    # this is to run 50 jobs at a time
#SBATCH --cpus-per-task=1
#SBATCH --time=24:00:00
#SBATCH --output=/net/mulan/xxx/out/Yourjob%a.txt  # you need to create the folder "/net/mulan/xxx/out" 
#SBATCH --error=/net/mulan/xxx/err/Yourjob%a.txt   # same as above
#SBATCH --mem-per-cpu=5000MB  
#SBATCH --partition=mulan,main                           # or just one of these partitions

bash
let k=0

for ((arg1=1;arg1<=10;arg1++)); do
	for ((arg2=1;arg2<=10;arg2++)); do
	  let k=${k}+1
	  if [ ${k} -eq ${SLURM_ARRAY_TASK_ID} ]; then
		  Rscript --verbose ./Yourcode.R   ${arg1}  ${arg2} 
	  fi
	done
done
# example R script “Yourcode.R”:
args <- as.numeric(commandArgs(TRUE))
i = args[1] # simulation scenario, i.e. if you have 10 scenarios, here you are running the i-th scenario 
j = args[2] # repeat number, i.e. when you need to run 10 replicates in each scenario
print("scenario")
print(i)
print("repeat")
print(j)
# then you can write your codes from here.

Reading

  • Reading papers
    • Google scholar (follow individual researchers and subscribe through email)
    • Researcher (iphone/ipad APP, receive journal updates)
    • Journal websites (i.e. https://www.nature.com/nature/research-articles)
    • biorxiv and arxiv
    • Twitter (need to train it a little bit so that it can recommend related papers for you)
  • Taking notes
    • Notion (very flexible, discount with umich email)
    • Evernote

Writing

Meeting

  • These are just things that might be helpful, different people may have different styles when meeting with their advisors
    • Before the weekly meeting:
      • summarize the topics you want to discuss, list them from most to least important
      • prepare slides or notes, organize the results and put one sentence summary on each page
      • think about what questions you have, google or do as much preliminary exploration as you can
      • think about possible solutions when you meet challenges, for example, when you have two options and both are easy to try, try them first and summarize the results, and then discuss the results with your advisor on the meeting. Otherwise, if both options are time consuming, you may want to ask your advisor to help rank the priority
    • During the meeting:
      • take notes of the topics you should follow up on, and their priority
      • be honest and tell your advisor if you are stuck somewhere
    • After the meeting:
      • summarize what was discussed and your next steps
      • send an email if you need further input from your advisor, outline what was discussed and what you need
    • Other tips:
      • summarize your past experience to identify what worked well and why
      • this is your PhD, don’t totally rely on your advisor, you are the one to solve the problems and make things work

General stuff


blog comments powered by Disqus