meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| general:computerenvironment:tasksetbash [2025/10/13 11:36] – ↷ Links adapted because of a move operation 47.128.43.248 | general:computerenvironment:tasksetbash [2026/01/13 10:33] (current) – felix | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | <WRAP tabs> | ||
| + | * [[beh_molevol: | ||
| + | * [[beh_molevol: | ||
| + | * [[mbw_bioinf: | ||
| + | * [[mbw_bioinf: | ||
| + | * [[pbioc_basics: | ||
| + | * [[pbioc_basics: | ||
| + | * [[physaliacg: | ||
| + | </ | ||
| + | |||
| + | |||
| ====== Working with the command line ====== | ====== Working with the command line ====== | ||
| Line 81: | Line 92: | ||
| We have compiled a set of tasks for you that will deepen your knowledge about working with the BASH shell and will introduce some principles and dataformats which are common to bioinformatics. | We have compiled a set of tasks for you that will deepen your knowledge about working with the BASH shell and will introduce some principles and dataformats which are common to bioinformatics. | ||
| - | These exercises will come in the format of [[https:// | + | These exercises will come in the format of [[https:// |
| - | < | + | |
| - | Go ahead and download our exercises from GitHub via this [[https://github.com/BIONF/digital_competence|LINK]]. The easiest way to start the download is to click on the green "Code button" | + | - Now you can create |
| + | < | ||
| + | - Activate your new environment:< | ||
| + | < | ||
| + | === 2.2 Exercises === | ||
| + | |||
| + | - To start, [[https:// | ||
| + | <hidden Hint>The easiest way to start the download is to click on the green "Code button" | ||
| <figure git> | <figure git> | ||
| - | {{ :studentarea:felix:git.png?700 |}} | + | {{:general:computerenvironment:download_digital_competence.png?700|}} |
| < | < | ||
| **Starting download of the ZIP file.** | **Starting download of the ZIP file.** | ||
| </ | </ | ||
| </ | </ | ||
| - | + | </ | |
| - | === 2.2 Exercises === | + | - Unpack the directory with a [[https:// |
| - | [[general: | + | |
| - | < | + | - Now, make sure that the your '' |
| - | + | < | |
| - | This will open a window in your browser with which you can navigate to the `.ipynb` files of each exercise. The notebooks contain a set of instructions and some tasks. They also contain code cells in which you should document the command which solve the task. | + | |
| - | + | ||
| - | You can also use the code cells to experiment and find your solution, but we encourage you to try out all commands | + | |
| - | + | ||
| - | /* ==== 2.3. The final boss ==== | + | |
| - | + | ||
| - | Professor Ebersberger prepared a heartwarming message, but the tutor decided to corrupt it: | + | |
| - | + | ||
| - | <file hidden message.txt> | + | |
| - | ajtxdfsdfbrxKKmbbbbbbbnjyfvyilxdm | + | |
| - | aliushsjwnKlpqk$jjw4iutjsmrwxwprt | + | |
| - | u$dkslncwdikbmjlznm4$xjwhhuws$zsg | + | |
| - | vpdlrdK$scfztmzmmin1ihhjhkuccjhyu | + | |
| - | gywolhzkdjchKj$vdbs_wqjufqkdkhfKs | + | |
| - | gzkppuzcrnwugnzunKj9opsfikwzmc$tv | + | |
| - | cgbuwuvychKkynuwm$$vtnrqvlh$fixdl | + | |
| - | mcubfbmvrozsxuytkcp4mzyzsfglqbftv | + | |
| - | qiyghrtyrnbsmplftdf1yjhcyzqbcruw$ | + | |
| - | rKmxzijztdbsfyqnaaaaaaapcjgksbrvl | + | |
| - | cutxtszqgiuKhjcqKgl2ikipinzKinmnq | + | |
| - | mopnjprmyrhrwgkptxmw$ykkqgtKlwcKs | + | |
| - | nmrhj$hyniqmdksgszl7fqKumtzinykvt | + | |
| - | kwcyjfokfhsmsvdrKlr0xvgtqjv$btghs | + | |
| - | lubdtrlqkumhoxmmosl7ntiwkv$jytjoK | + | |
| - | lydvjKzyfpw$uwtkzwk_nruofvtthk$ug | + | |
| - | bixcokiyngorzjlgKhw$xofKuzkvrpjnh | + | |
| - | glKqdudq$ypipnydbbd8gzdc$ogkoxrtK | + | |
| - | nrzjh$qly$uirKcmgcg6Kuzujhjwfmzql | + | |
| - | ntKycbgzxvhK$$qknjqKhnfdxhdvl$$ks | + | |
| - | nviqqzsKtwhryqkjbzlKmqkotfghfdycn | + | |
| - | nwbhtfdtqokgooKdwgx3uzuhKn$zwKwsc | + | |
| - | d$xgKm$nguicrxftptuKmdvlivq$ktniy | + | |
| - | ehlfmxdqpbxlvkbmqcm_pwzyqtyonroki | + | |
| - | fnzxbglvgxjtfjyptqh$plthdtlbibhjp | + | |
| - | otzvubvbrmhbtKKprdhkcsymygpxrvvsu | + | |
| - | pbobvqvlyswgdbwhqkuKqflquqwpwfdiK | + | |
| - | qcyhmzjdbncqnxcccccccKrKqqmbfuwwq | + | |
| - | gmxmcnlsfxpjiqjwiwu6Kshyzysbwfnud | + | |
| - | tliryqipzmrrurhjypj5dhxgzvwfjhwdw | + | |
| - | txyvnvfjrvmziyjiuhK2v$cuxtKjgvutg | + | |
| - | tzcxpskunxhoxhyjnjf2uqzowqzyksblK | + | |
| - | h$gyhbmsckritgddddddd$oqblpdmppqy | + | |
| - | i$dcwssvps$qirwfymy0o$xgzpxuibcpm | + | |
| - | idxgdqrk$jjxkotxccliKKut$rpjlylxb | + | |
| - | jbbkrjgKfvu$voggbtccojkwhwdydkzc$ | + | |
| - | kqrbkgfcuucmfglzwutKhnyucpduKwsKq | + | |
| - | vwsfnmssyzucKwtxvfb5tzx$qmzpgqKyy | + | |
| - | vykspgktfgKqlufqtlr2hqdioqsfdppfo | + | |
| - | wdqnfq$orlbongwsrlz1vmhzcpdvjtKsy | + | |
| - | wmlrylbmnfwzvohyokl3ctmbvvppysndu | + | |
| - | wpfgkgscKpvifmiqpmp9j$cmmwtocxlci | + | |
| - | xojuilwkykvh$hjjjig8fpzthxyKdhykp | + | |
| - | xovyzjukwdsycjxkwqr3gbsywdrjrvufy | + | |
| - | yKprfKyydsgnvzwqfnp5tsrKqiqyzKjuw | + | |
| - | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx | + | |
| - | </ | + | |
| - | + | ||
| - | <file hidden codex.txt> | + | |
| - | aaaaaaa rkydfrp | + | |
| - | bbbbbbb vgkkhbw | + | |
| - | ccccccc lskhrnt | + | |
| - | ddddddd hmKlcnd | + | |
| - | xxxxxxx xxxxxxx | + | |
| - | </ | + | |
| - | + | ||
| - | In order to decode the secret message, the following will be needed: | + | |
| - | | + | |
| - | * Use the codex to restore the words from the first column, into the second one. (Make a backup. Try a combination of while-read + sed -i "" | + | |
| - | <hidden while read> | + | |
| - | While read can be used to work with lines of lists and tables, associating pairs (or n elements) of entries in a column. | + | |
| - | In a table with 2 columns, one entry is saved as the variable " | + | |
| - | < | + | |
| - | cat test.txt | while read n k; do echo $n ; done | + | |
| - | cat test.txt | while read n k; do echo $k; done | + | |
| - | cat test.txt | while read n k; do echo $n | sed " | + | |
| - | cat test.txt | while read column1 column2; do echo $column1 | sed " | + | |
| - | </ | + | |
| - | Hint: | + | |
| - | < | + | |
| - | * Get rid of the lines with numbers | + | |
| - | * Instead of capital letter <fc # | + | |
| - | * Instead of <fc # | + | |
| - | * Sort the lines | + | |
| - | * The message should be in the 20th column. | + | |
| - | * Read them in one line | + | |
| - | */ | + | |
| ==== 3. Using a computer cluster ==== | ==== 3. Using a computer cluster ==== | ||
| In the previous exercises you have learned to write commands and pipelines in the BASH shell. Now we want to look at how we can expand our analyses to large-scale analyses or datasets. For such resource heavy jobs we have a computer cluster available which is managed by the SLURM architecture. Please read through the [[https:// | In the previous exercises you have learned to write commands and pipelines in the BASH shell. Now we want to look at how we can expand our analyses to large-scale analyses or datasets. For such resource heavy jobs we have a computer cluster available which is managed by the SLURM architecture. Please read through the [[https:// | ||
| Line 309: | Line 241: | ||
| <WRAP tabs> | <WRAP tabs> | ||
| - | * [[beh_molevol: | + | * [[beh_molevol: |
| - | * [[ecoevo_molevol: | + | * [[beh_molevol: |
| - | * [[mbw_bioinf: | + | * [[mbw_bioinf: |
| * [[mbw_bioinf: | * [[mbw_bioinf: | ||
| * [[pbioc_basics: | * [[pbioc_basics: | ||