Browse code

resurrect improvements that we reverted before the April release, expect breakage for a while

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@110039 bc3139a8-67e5-0310-9ffc-ced21a209358

Michael Lawrence authored on 28/10/2015 18:51:00
Showing 1 changed files
... ...
@@ -18,7 +18,7 @@ read_char (unsigned char **bytes) {
18 18
 
19 19
 static inline const char *
20 20
 read_string (unsigned char **bytes) {
21
-  const char *string = *bytes;
21
+  const char *string = (char *)*bytes;
22 22
   (*bytes) += strlen(string) + 1;
23 23
   return string;
24 24
 }
Browse code

Reverted to r101133, along with NAMESPACE fixes

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@102487 bc3139a8-67e5-0310-9ffc-ced21a209358

Michael Lawrence authored on 14/04/2015 21:40:44
Showing 1 changed files
... ...
@@ -18,7 +18,7 @@ read_char (unsigned char **bytes) {
18 18
 
19 19
 static inline const char *
20 20
 read_string (unsigned char **bytes) {
21
-  const char *string = (char *)*bytes;
21
+  const char *string = *bytes;
22 22
   (*bytes) += strlen(string) + 1;
23 23
   return string;
24 24
 }
Browse code

Recent work towards supporting the new features... will revert back to a stable version immediately...

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@102485 bc3139a8-67e5-0310-9ffc-ced21a209358

Michael Lawrence authored on 14/04/2015 21:32:10
Showing 1 changed files
... ...
@@ -18,7 +18,7 @@ read_char (unsigned char **bytes) {
18 18
 
19 19
 static inline const char *
20 20
 read_string (unsigned char **bytes) {
21
-  const char *string = *bytes;
21
+  const char *string = (char *)*bytes;
22 22
   (*bytes) += strlen(string) + 1;
23 23
   return string;
24 24
 }
Browse code

add codon tally support. No vbump yet

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@93316 bc3139a8-67e5-0310-9ffc-ced21a209358

Gabriel Becker authored on 11/08/2014 23:42:48
Showing 1 changed files
... ...
@@ -8,13 +8,14 @@ read_int (unsigned char **bytes) {
8 8
   return x;
9 9
 }
10 10
 
11
-static inline char
11
+static inline unsigned char
12 12
 read_char (unsigned char **bytes) {
13
-  char x = (*bytes)[0];
13
+  unsigned char x = (*bytes)[0];
14 14
   (*bytes)++;
15 15
   return x;
16 16
 }
17 17
 
18
+
18 19
 static inline const char *
19 20
 read_string (unsigned char **bytes) {
20 21
   const char *string = *bytes;
Browse code

Decoupling the bam tallying from summarization. Soon, we will return an IIT, which can be summarized in various ways. Currently, the only way is the variant summary.

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/gmapR@69806 bc3139a8-67e5-0310-9ffc-ced21a209358

Michael Lawrence authored on 25/09/2012 16:00:17
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,23 @@
1
+/* Functions for reading data from byte streams. Inlined because they
2
+   are tiny and need to be fast. */
3
+
4
+static inline int
5
+read_int (unsigned char **bytes) {
6
+  int x = ((int *)*bytes)[0];
7
+  *bytes += sizeof(int);
8
+  return x;
9
+}
10
+
11
+static inline char
12
+read_char (unsigned char **bytes) {
13
+  char x = (*bytes)[0];
14
+  (*bytes)++;
15
+  return x;
16
+}
17
+
18
+static inline const char *
19
+read_string (unsigned char **bytes) {
20
+  const char *string = *bytes;
21
+  (*bytes) += strlen(string) + 1;
22
+  return string;
23
+}