Skip to content

maruf-ahmed-bhuiyan/HackBio2020

Repository files navigation


HackBio

HackBio Internship Programme

Hello,

This is Maruf Ahmed Bhuiyan

I am a doctor by profession and a researcher by passion. I am currently pursuing my Doctor of Medicine (MD) in Virology in the Department of Virology at Bangabandhu Sheikh Mujib Medical University. I am passionate about impactful research and constantly on the hunt to acquire new skills.

PrerequisitesFlowchartCodesRPythonPerlRubyPHP

Prerequisites

Flowchart

WorkFlow_HackBio

Codes

R

#!/usr/local/bin/Rscript

name <- "Maruf Ahmed Bhuiyan"
email <- "dr.marufahmed89@gmail.com"
language <- "R"
biostack <- "Genomics"
slack <- "@Maruf"

my_details <- c(name, email, language, biostack, slack)
  
cat(paste(my_details, collapse = ',')) 

Python

#!/usr/local/bin/python3

name = "Maruf Ahmed Bhuiyan"
email = "dr.marufahmed89@gmail.com"
language = "Python"
biostack = "Genomics"
slack = "@Maruf"

print("{}, {}, {}, {}, {}".format(name, email, language, biostack, slack))

Perl

#!/usr/local/bin/perl

$name = 'Maruf Ahmed Bhuiyan';
$email = 'dr.marufahmed89@gmail.com';
$language = 'Perl';
$biostack = 'Genomics';
$slack = '@Maruf';

print "$name, $email, $language, $biostack, $slack";

Ruby

#!/usr/bin/ruby

puts 'Maruf Ahmed Bhuiyan, dr.marufahmed89@gmail.com, Python, Genomics, @Maruf'

PHP

#!/usr/bin/php

<?php
$name = 'Maruf Ahmed Bhuiyan';
$email = 'dr.marufahmed89@gmail.com';
$language = 'PHP';
$biostack = 'Genomics';
$slack = '@Maruf';

echo "$name, $email, $language, $biostack, $slack";

?>

Script that generates csv using bash

ooo        ooooo                                 .o88o.
`88.       .888'                                 888 `"
 888b     d'888   .oooo.   oooo d8b oooo  oooo  o888oo 
 8 Y88. .P  888  `P  )88b  `888""8P `888  `888   888   
 8  `888'   888   .oP"888   888      888   888   888   
 8    Y     888  d8(  888   888      888   888   888   
o8o        o888o `Y888""8o d888b     `V88V"V8P' o888o  

# this script executes all scripts in the directory
#!/usr/bin/env bash

# Clone the this repository from GitHub using the URL for the repository
git clone https://github.com/maruf-ahmed-bhuiyan/HackBio2020

# Print the current working directory using pwd(print working directory)
Pwd

# List the files of the directory
ls

# Change the directory to HackBio2020
cd ./HackBio2020

# Print the current working directory using pwd(print working directory)
Pwd

# List the files of the directory
ls

# Give privilege to execute the all the scripts in this folder
# script_name.extension
chmod +x script* 
 
# Loop through all the scripts in the folder and generate a Csv file
ls script*

# Number of files
ls script* | wc -l

for i in $(ls script*)
do
	./$i | awk -F ',' '{print $1,$2,$3,$4,$5}' >> all.csv
done

Footer