-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-renamingfiles.html
More file actions
116 lines (115 loc) · 4.79 KB
/
python-renamingfiles.html
File metadata and controls
116 lines (115 loc) · 4.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<!--
Phantom by HTML5 UP
html5up.net | @ajlkn
Free for personal and commercial use under the CCA 3.0 license (html5up.net/license)
-->
<html>
<head>
<title>Python renaming files - Marcus Griffiths, PhD</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<link href="assets/css/main.css" rel="stylesheet">
<noscript>
<link href="assets/css/noscript.css" rel="stylesheet">
</noscript>
</head>
<body class="is-preload">
<!-- Wrapper -->
<div id="wrapper">
<!-- Header -->
<header id="header">
<div class="inner">
<!-- Logo -->
<a class="logo" href="index.html"><span class="symbol"><img alt="" src="images/logo.svg"></span><span class="title">Marcus Griffiths, PhD.</span></a>
<!-- Nav -->
<nav>
<ul>
<li><a href="#menu">Menu</a></li>
</ul>
</nav>
</div>
</header>
<!-- Menu -->
<nav id="menu">
<h2>Menu</h2>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About me</a></li>
<li><a href="publications.html">Publications</a></li>
<li><a href="presentations.html">Presentations / Conferences</a></li>
<li><a href="code.html">Code</a></li>
<li><a href="software.html">Software</a></li>
<li><a href="resources.html">Training / Resources</a></li>
</ul>
</nav>
<!-- Main -->
<div id="main">
<div class="inner">
<h1>Batch renaming plant science data files in python</h1>First of all generate a .csv with two columns, the first column called "file_list" which contains your list of files to rename<br>
and a column called "new_name" with your new desired names.<br>
Please see my <a href="https://github.com/marcusdgriff/marcusdgriff.github.io" target="_blank">Tidyverse R code</a> for one method of generating list of file names in a folder.<br>
<p><img alt="" src="images/file-list.png"><br>
Then follow the code in the link below. I personally like Juypter Notebooks to run through the code. </p>
<a href="https://github.com/marcusdgriff/Jupyter-notebooks/blob/main/FileBatchRenamer.ipynb" target="_blank"> Run the code</a></p>
<!-- Footer -->
<footer id="footer">
<div class="inner">
<section>
<h2>Get in touch</h2>
<form action="" method="post">
<div class="fields">
<div class="field half">
<input id="name" name="name" placeholder="Name" type="text">
</div>
<div class="field half">
<input id="email" name="email" placeholder="Email" type="email">
</div>
<div class="field">
<textarea id="message" name="message" placeholder="Message"></textarea>
</div>
</div>
<ul class="actions">
<li><input class="primary" type="submit" value="Send"></li>
</ul>
</form>
</section>
<section>
<h2>Follow</h2>
<ul class="icons">
<li><a class="icon brands style2 fa-twitter" href="https://twitter.com/marcusdgriff"><span class="label">Twitter</span></a></li>
<li><a class="icon brands style2 fa-google" href="https://scholar.google.co.uk/citations?hl=en&user=X--dqYYAAAAJ"><span class="label">Google scholar</span></a></li>
<li><a class="icon brands style2 fa-linkedin" href="https://linkedin.com/in/mdgriffiths"><span class="label">Linkedin</span></a></li>
<li><a class="icon brands style2 fa-product-hunt" href="https://publons.com/researcher/1627133/marcus-griffiths/"><span class="label">Publons</span></a></li>
<li><a class="icon brands style2 fa-github" href="https://github.com/marcusdgriff/"><span class="label">GitHub</span></a></li>
<li><a class="icon brands style2 fa-orcid" href="https://orcid.org/0000-0003-2349-8967"><span class="label">OrcidID</span></a></li>
<li><a class="icon solid style2 fa-envelope" href="mailto:mgriffiths@danforthcenter.org"><span class="label">Email</span></a></li>
</ul>
</section>
<ul class="copyright">
<li>© Marcus Griffiths [All rights reserved]</li>
<li>designed using Bootstrap 4.0</li>
<li>hosted on <i class="fab fa-github"></i></li>
<li>Source code available <a href="https://github.com/marcusdgriff/marcusdgriff.github.io">here</a></li>
<li>and maintained by myself</li>
<li>Design: <a href="https://html5up.net">HTML5 UP</a></li>
</ul>
</div>
</footer>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js">
</script>
<script src="assets/js/browser.min.js">
</script>
<script src="assets/js/breakpoints.min.js">
</script>
<script src="assets/js/util.js">
</script>
<script src="assets/js/main.js">
</script>
</div>
</div>
</body>
<script src='https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js' type='text/javascript'></script>
</html>