Skip to main content
25 events
when toggle format what by license comment
Jun 23, 2020 at 11:20 history edited Dingus CC BY-SA 4.0
added 827 characters in body
Jun 13, 2020 at 1:49 comment added Dingus My previous comment is now outdated - I've switched from hex to decimal (via octal) to save 2 bytes.
Jun 13, 2020 at 1:48 history edited Dingus CC BY-SA 4.0
added 67 characters in body
Jun 13, 2020 at 1:39 history edited Dingus CC BY-SA 4.0
added 67 characters in body
Jun 12, 2020 at 22:39 history edited Dingus CC BY-SA 4.0
added 91 characters in body
Jun 12, 2020 at 13:07 history edited Dingus CC BY-SA 4.0
added 47 characters in body
Jun 12, 2020 at 13:05 comment added Dingus @akostadinov I've added an explanation to the answer. You're right about *''. '%x'%$& consists of two parts. $& is the last matched string returned by gsub; here this is a 2-digit binary string representing a single RNA base. '%' is a short form of sprintf, which is used to convert between string formats. The format specifier x causes the argument ($&) to be converted to hex.
Jun 12, 2020 at 12:56 history edited Dingus CC BY-SA 4.0
added 535 characters in body
Jun 12, 2020 at 11:03 comment added akostadinov Nice, I was looking to do something similar before I saw your answer. *'' this only converts to string I guess. What does '%x'%$& do?
Jun 12, 2020 at 3:42 history edited Dingus CC BY-SA 4.0
added 7 characters in body
Jun 12, 2020 at 0:38 history edited Dingus CC BY-SA 4.0
added 1238 characters in body
Jun 11, 2020 at 23:34 history edited Dingus CC BY-SA 4.0
added 4350 characters in body
Jun 11, 2020 at 23:02 history edited Dingus CC BY-SA 4.0
added 45 characters in body
Jun 11, 2020 at 4:45 history edited Dingus CC BY-SA 4.0
deleted 9 characters in body
Jun 11, 2020 at 4:38 history edited Dingus CC BY-SA 4.0
added 80 characters in body
Jun 11, 2020 at 4:27 history edited Dingus CC BY-SA 4.0
deleted 11088 characters in body
Jun 10, 2020 at 13:06 history edited Dingus CC BY-SA 4.0
added 82 characters in body
Jun 10, 2020 at 7:51 history edited Dingus CC BY-SA 4.0
deleted 2 characters in body
Jun 10, 2020 at 7:22 history edited Dingus CC BY-SA 4.0
added 307 characters in body
Jun 10, 2020 at 4:55 history edited Dingus CC BY-SA 4.0
deleted 184 characters in body
Jun 10, 2020 at 4:17 history edited Dingus CC BY-SA 4.0
added 9936 characters in body
Jun 10, 2020 at 2:18 history edited Dingus CC BY-SA 4.0
added 13 characters in body
Jun 10, 2020 at 2:13 history edited Dingus CC BY-SA 4.0
deleted 3 characters in body
Jun 10, 2020 at 2:07 history edited Dingus CC BY-SA 4.0
added 278 characters in body
Jun 10, 2020 at 1:58 history answered Dingus CC BY-SA 4.0